From 32a41defe86c2198227fba681f0a99fc4d311abd Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 6 Dec 2023 05:45:53 -0800 Subject: [PATCH] Format fix in 1994/dodsond2/README.md + thanks .. that is, the thanks file also had a slight formatting issue. --- 1994/dodsond2/README.md | 9 +++++++-- thanks-for-fixes.md | 16 ++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/1994/dodsond2/README.md b/1994/dodsond2/README.md index a05a34cf0..5c86b55e4 100644 --- a/1994/dodsond2/README.md +++ b/1994/dodsond2/README.md @@ -5,8 +5,9 @@ make all ``` -There is an [alternate version](#alternate-code) that allows you to cheat, -giving you a configurable amount of arrows at the start of the game. +There is an alternate version that allows you to heat, giving you configurable +amount of arrows at the start of the game. See [Alternate +code](#alternate-code). ### 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 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: @@ -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 the contest! + ### A historical note: The original source code was submitted as a GZIP compressed file diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 673a5f3a0..447135445 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1667,14 +1667,14 @@ this code. Other code is also described there. ## [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 -having no arrows, thus making one force quit the game. The problem was in a -condition in the outer loop it would repeatedly get input (if `getchar()` -returned `'\n'`), only if one has more than one arrow, returning after that. -But if there were 0 arrows left it did not return and so the loop started over, -doing nothing. This fix also seems to have fixed a problem where if you shoot -your last arrow it would not move you to the room you shoot into (whereas if you -had more arrows it would). +[Cody](#cody) fixed an infinite loop that could happen when you shoot an arrow +and end up having no arrows, thus making one force quit the game. The problem +was in a condition in the outer loop it would repeatedly get input (if +`getchar()` returned `'\n'`), only if one has more than one arrow, returning +after that. But if there were 0 arrows left it did not return and so the loop +started over, doing nothing. This fix also seems to have fixed a problem where +if you shoot your last arrow it would not move you to the room you shoot into +(whereas if you had more arrows it would). 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