Author:
- Name: Ilya Kurdyukov
Location: RU - Russian Federation (Russia)
To build:
make all
To use:
./prog
Try:
./try.sh
Judges’ remarks:
Comparing this entry to 2000/natori, which does something similar, is quite instructive. This entry does not use floating point, and the only common magic number is 2551443 (what does it mean?). How is this entry able to achieve a similar result?
Author’s remarks:
Moon Phase
This code draws the current moon phase to the console. So if you’re a lycanthrope, you can monitor the phase of the moon.
Customization
It shows a view from the northern hemisphere, to see from the southern replace
<a*(~
with>=a*(
. Can’t show a view near the equator.The code assumes that your terminal color is dark and the text color is bright. If not, you can change
"#."
characters in the source code to suit your case.
Inventory for 2024/kurdyukov1
Primary files
- prog.c - entry source code
- Makefile - entry Makefile
- prog.orig.c - original source code
- try.sh - script to try entry
Secondary files
- 2024_kurdyukov1.tar.bz2 - download entry tarball
- README.md - markdown source for this web page
- .entry.json - entry summary and manifest in JSON
- .gitignore - list of files that should not be committed under git
- .path - directory path from top level directory
- index.html - this web page