Re: Playing during an eclipse
- From: Simon Richard Clarkstone <s.r.clarkstone@xxxxxxxxxxxx>
- Date: Sun, 04 Mar 2007 17:59:57 +0000
Arthur J. O'Dwyer wrote:
To clarify, for those readers who are as slow-witted as I was: The game
doesn't care about eclipses at all. But lunar eclipses always happen
during full moons, and solar eclipses always happen during new moons.
(The game doesn't care about eclipses because they're too complicated
to predict in advance, or too irregular in occurrence, or something. The
algorithm for computing the phase of the moon is surprisingly simple,
though.)
AFAICT it is an adaptation of part of the Easter formula, though it has been adjusted to make it more suitable for computers, using modular integer arithmetic instead of lookup tables. The moon it works with does not exactly follow the real moon but an approximation to it based on a perfectly circular orbit of constant speed. Occasionally it will be off by a day or two (which is why Easter seems to be almost two weeks off from its "proper" date in some years). Also, AFAICT, the SOL and LUN corrections are absent, so Nethack will gradually drift out of alignment with the real phase of the moon over the next century or two.
(YANI: A switch for nethack that makes it say what time it thinks it is and all time-related info instead or starting the game. Good for public servers. Or maybe a simple wrapper round hacklib.c would do.)
--
Simon Richard Clarkstone:
s.r.cl?rkst?n?@durham.ac.uk/s?m?n.cl?rkst?n?@hotmail.com
Scheme guy says: (> Scheme Haskell)
Haskell guy says: (> Scheme) Haskell
.
- References:
- Playing during an eclipse
- From: Wim Benthem
- Re: Playing during an eclipse
- From: Janis Papanagnou
- Re: Playing during an eclipse
- From: Arthur J. O'Dwyer
- Playing during an eclipse
- Prev by Date: Re: Equipping a pet Jabberwock?
- Next by Date: Re: Equipping a pet Jabberwock?
- Previous by thread: Re: Playing during an eclipse
- Next by thread: Re: Playing during an eclipse
- Index(es):
Relevant Pages
|