fix Makefile and README.md for 2001/williams

This commit is contained in:
Landon Curt Noll committed 2023-03-21 16:14:00 -07:00
1 parent 768250a5f2
commit 2996d7dd71
2 files changed
+302 -200

No files matched your search

+38 -31
View File
@@ -1,58 +1,65 @@
Best Graphic Game:
# Best Graphic Game:
John Williams
941 E 25 S
Lindon UT 84042
USA
# To build:
Judge's Remarks:
```sh
make
```
To build:
### To run:
make williams
```sh
./williams
```
Try:
### Try:
./williams
```sh
echo "Do or do not. There is no try."
```
The only way to win is not to play. No, really; you can't actually win.
:)
## Judges' comments:
The formatting really wants a wide screen; if you can't read it that way,
it's the standard "three triangles around a circular" logo for nukes.
The only way to win is not to play. No, really; you can't actually win. :)
This is a pretty straightforward game.
The formatting really wants a wide screen; if you can't read it that way,
it's the standard "three triangles around a circular" logo for nukes.
This is a pretty straightforward game.
Selected Author's Comments:
## Author's comments:
What this program does:
What this program does:
It plays Missile Command, complete with MIRVs, smart bombs,
extra cities, and scoring.
It plays Missile Command, complete with MIRVs, smart bombs,
extra cities, and scoring.
Command line arguments and input files are ignored.
Command line arguments and input files are ignored.
To play, just point and click where you want your ABMs to explode.
To play, just point and click where you want your ABMs to explode.
The score is 10 points for each missile which is destroyed before
it reaches the ground, -1 point for each ABM used, and 100 bonus
points for each city left at the end of a level.
The score is 10 points for each missile which is destroyed before
it reaches the ground, -1 point for each ABM used, and 100 bonus
points for each city left at the end of a level.
The game ends when you lose all your cities, although you will have
to wait until the level finishes raining down to see your final score.
The game ends when you lose all your cities, although you will have
to wait until the level finishes raining down to see your final score.
The main obfuscation technique is the need to compress the code to fit
all the functionality within the size limits. I could not have included
smart bombs without the rule excluding { } ; characters in the counts.
All of the #defines are there to reduce code size.
The main obfuscation technique is the need to compress the code to fit
all the functionality within the size limits. I could not have included
smart bombs without the rule excluding { } ; characters in the counts.
All of the #defines are there to reduce code size.
On the other hand, I did waste a few characters in order to include
some rather obfuscated math in the program. It uses fixed-point
arithmetic, resulting in the overuse of bitwise shift operators.
Another example is (x|1), which is used in a couple different ways.
The purpose of A/(x|1) is probably obvious, but what does (x|1)%2 do?
On the other hand, I did waste a few characters in order to include
some rather obfuscated math in the program. It uses fixed-point
arithmetic, resulting in the overuse of bitwise shift operators.
Another example is (x|1), which is used in a couple different ways.
The purpose of A/(x|1) is probably obvious, but what does (x|1)%2 do?