fix Makefile and README.md for 2013/morgan1
This commit is contained in:
1 parent
3184f474ae
commit
a94d40f0d9
2 files changed
+225
-97
No files matched your search
+27
-22
@@ -1,27 +1,31 @@
|
||||
# Smallest large system simulator
|
||||
|
||||
Yves-Marie Morgan
|
||||
<yves-marie.morgan@parrot.com>
|
||||
Yves-Marie Morgan
|
||||
<yves-marie.morgan@parrot.com>
|
||||
|
||||
# To build:
|
||||
|
||||
## Judges' comments:
|
||||
### To build:
|
||||
|
||||
make morgan1
|
||||
```sh
|
||||
make
|
||||
```
|
||||
|
||||
### To run:
|
||||
|
||||
echo "2013/10/03" | ./morgan1
|
||||
```sh
|
||||
echo "2013/10/03" | ./morgan1
|
||||
```
|
||||
|
||||
### Try:
|
||||
|
||||
echo "1985/10/28" | ./morgan1
|
||||
```sh
|
||||
echo "1985/10/28" | ./morgan1
|
||||
|
||||
echo "1996/12/31" | ./morgan1
|
||||
echo "1996/12/31" | ./morgan1
|
||||
```
|
||||
|
||||
Try pressing the arrow keys when your focus is in the window.
|
||||
|
||||
### Selected Judges Remarks:
|
||||
## Judges' comments:
|
||||
|
||||
To verify the output, try echoing the date of an evening with a clear sky.
|
||||
Use binoculars and/or telescope as needed. In some cases you may need
|
||||
@@ -30,15 +34,17 @@ the South Pole in the summer, you may need to move to a different
|
||||
observing site.
|
||||
|
||||
## Author's comments:
|
||||
# Instructions
|
||||
|
||||
### Instructions
|
||||
|
||||
It displays the position of the 8 planets of the solar system around the sun.
|
||||
The date given in the command line is in the format YYYY/MM/DD (year, month and
|
||||
day). The direction keys can be used to move in time :
|
||||
Left : go back 1 day.
|
||||
Right : go forward 1 day.
|
||||
Down : go back 20 days.
|
||||
Up : go forward 20 days.
|
||||
|
||||
Left : go back 1 day.
|
||||
Right : go forward 1 day.
|
||||
Down : go back 20 days.
|
||||
Up : go forward 20 days.
|
||||
|
||||
It handles correctly all leap years and the switch between julian calendar and
|
||||
gregorian calendar (10 days missing between 1582/10/04 and 1582/10/15).
|
||||
@@ -48,13 +54,13 @@ Mercury, Venus, Earth and Mars squizzed around the sun.
|
||||
|
||||
The size is not proportinal either.
|
||||
|
||||
# Bonus
|
||||
### Bonus
|
||||
|
||||
It also displays the position of 2 famous comets during their last approach :
|
||||
- The first one arround the third IOCCC.
|
||||
- The second one between the thirteenth and fourteenth IOCCC.
|
||||
|
||||
# Limitations
|
||||
### Limitations
|
||||
|
||||
* ASCII character set is assumed.
|
||||
* a c99 compiler is required (for some math.h functions).
|
||||
@@ -63,7 +69,7 @@ It also displays the position of 2 famous comets during their last approach :
|
||||
position around the sun but not for other applications like ephemeride or
|
||||
sky view from Earth (angles may be off by 1 or 2 degrees sometimes).
|
||||
|
||||
# Obfuscation
|
||||
### Obfuscation
|
||||
|
||||
* Reuse of 1 letter variables.
|
||||
* Only the main function with some for loops.
|
||||
@@ -72,7 +78,7 @@ It also displays the position of 2 famous comets during their last approach :
|
||||
* Comparisons order are not consitent.
|
||||
* A lot of stuff is done in the different parts of the for loop.
|
||||
|
||||
# Compilation warnings
|
||||
### Compilation warnings
|
||||
|
||||
with gcc 4.7.2 on Linux Ubuntu 12.10 :
|
||||
* prog.c:38:3: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
|
||||
@@ -94,11 +100,10 @@ To verify the display, you can look at one of this programs :
|
||||
* homeplanet : http://www.fourmilab.ch/homeplanet/
|
||||
* http://www.theplanetstoday.com/
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
<!--
|
||||
## Copyright:
|
||||
|
||||
(c) Copyright 1984-2015, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
|
||||
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
|
||||
|
||||
[judges]: http://www.ioccc.org/judges.html
|
||||
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
-->
|
||||
Reference in new issue
Block a user