Format fix in 1994/dodsond2/README.md + thanks

.. that is, the thanks file also had a slight formatting issue.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-06 05:45:53 -08:00
1 parent f70481cdb0
commit 32a41defe8
2 files changed
+15 -10

No files matched your search

+7 -2
View File
@@ -5,8 +5,9 @@ make all
``` ```
There is an [alternate version](#alternate-code) that allows you to cheat, There is an alternate version that allows you to heat, giving you configurable
giving you a configurable amount of arrows at the start of the game. amount of arrows at the start of the game. See [Alternate
code](#alternate-code).
### Bugs and (Mis)features: ### Bugs and (Mis)features:
@@ -31,6 +32,9 @@ For more detailed information see [1994 dodsond2 in bugs.md](/bugs.md#1994-dodso
This version allows you to choose how many arrows to start with, instead of the This version allows you to choose how many arrows to start with, instead of the
default 0. If one tried specifying a value < 0 it will set it to 0. default 0. If one tried specifying a value < 0 it will set it to 0.
Fun fact: this version helped uncover and fix a bug that prevented the entry
from working on some cases.
### Alternate build: ### Alternate build:
@@ -60,6 +64,7 @@ contest rules. Next year, entries that use compression utilities
to get around the size limit will find themselves squeezed out of to get around the size limit will find themselves squeezed out of
the contest! the contest!
### A historical note: ### A historical note:
The original source code was submitted as a GZIP compressed file The original source code was submitted as a GZIP compressed file
+8 -8
View File
@@ -1667,14 +1667,14 @@ this code. Other code is also described there.
## [1994/dodsond2](1994/dodsond2/dodsond2.c) ([README.md](1994/dodsond2/README.md)) ## [1994/dodsond2](1994/dodsond2/dodsond2.c) ([README.md](1994/dodsond2/README.md))
[Cody](#cody) fixed an infinite loop that could happen when you shoot an arrow and end up [Cody](#cody) fixed an infinite loop that could happen when you shoot an arrow
having no arrows, thus making one force quit the game. The problem was in a and end up having no arrows, thus making one force quit the game. The problem
condition in the outer loop it would repeatedly get input (if `getchar()` was in a condition in the outer loop it would repeatedly get input (if
returned `'\n'`), only if one has more than one arrow, returning after that. `getchar()` returned `'\n'`), only if one has more than one arrow, returning
But if there were 0 arrows left it did not return and so the loop started over, after that. But if there were 0 arrows left it did not return and so the loop
doing nothing. This fix also seems to have fixed a problem where if you shoot started over, doing nothing. This fix also seems to have fixed a problem where
your last arrow it would not move you to the room you shoot into (whereas if you if you shoot your last arrow it would not move you to the room you shoot into
had more arrows it would). (whereas if you had more arrows it would).
Cody added an alt version that allows one to cheat by specifying how many arrows Cody added an alt version that allows one to cheat by specifying how many arrows
to start with (this was for fun but it turned out a good way to debug the above to start with (this was for fun but it turned out a good way to debug the above