fix Makefile and README.md for 2014/sinon

Shell scripts find bash and make them excitable.
This commit is contained in:
Landon Curt Noll committed 2023-03-24 03:25:50 -07:00
1 parent bdca326528
commit 1c3c54e372
4 files changed
+228 -105

No files matched your search

+23 -23
View File
@@ -1,33 +1,35 @@
# Best choice of optimization
Don Yang
<omoikane@uguu.org>
<http://uguu.org/>
Don Yang
<omoikane@uguu.org>
<http://uguu.org/>
# To build:
## Judges' comments:
### To build:
make sinon
```sh
make
```
### To run:
cp sinon.c run.c
Then keep running ./glock.sh or ./hecate.sh within a minute with
slight pauses between invocations.
```sh
cp -f sinon.c run.c; ./hecate.sh
```
### Try:
cp sinon.c run.c; ./hecate.sh; ./glock.sh; sleep 3; ./glock.sh; sleep 1; ./hecate.sh
```sh
cp -f sinon.c run.c; ./hecate.sh; ./glock.sh; sleep 3; ./glock.sh; sleep 1; ./hecate.sh
```
### Selected Judges Remarks:
## Judges' comments:
Try to figure out how this entry determines the optimization level with
which it had been compiled. Is this an example of undefined behavior
or unspecified behavior?
## Author's comments:
### Summary
Sinon is a game of timing, the goal is to eliminate all enemies in
@@ -36,11 +38,12 @@ under one minute.
To start, compile and run the program. To resume, compile and run the
output repeatedly until you have won/lost the game. For example:
cp sinon.c run.c
gcc -O0 run.c -o run && ./run | tee run.c
gcc -O2 run.c -o run && ./run | tee run.c
...
```sh
cp sinon.c run.c
gcc -O0 run.c -o run && ./run | tee run.c
gcc -O2 run.c -o run && ./run | tee run.c
...
```
### Details
@@ -73,7 +76,6 @@ need to be more precise. This is effectively playing the game on
"hard" mode. It is worth trying this mode even if you have the right
compilers.
### Compatibility
Sinon has been tested and verified to work on these platforms:
@@ -91,7 +93,6 @@ Sinon has been tested and verified to work on these platforms:
Sinon is intended to be played in a 80x25 terminal.
### Miscellaneous features
Sinon might be the first game that uses compiler optimization level as
@@ -110,11 +111,10 @@ Process for making Sinon is included in spoiler.html.
Layout of this code is based on Asada Shino, also known as "Sinon",
from Sword Art Online.
--------------------------------------------------------------------------------
<!--
## 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/
-->