From 6707d601b6301a42e4edfb600f36abd575f94d81 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:56:32 -0800 Subject: [PATCH] Add bug status to 2001/williams There are two bugs that are known. First is that at the end of the game (when you lose) it appears to in (an infinite?) while loop call usleep(3). However you can still shoot your missiles at this point. The other bug is that it will eventually crash. It's easy to make it crash if you wait until everything is destroyed (that is when it starts printing the lines in a loop, sleeping over and over again) and only then start shooting your missiles, over and over again until it crashes. It appears that it's the 'Window *d' getting corrupted but I'm not sure why. These details have been added to bugs.md. The README.md file has been format fixed. There was a minor change to williams.c as well though this was only rolling back a change that should not have been committed yesterday. --- 2001/williams/Makefile | 2 +- 2001/williams/README.md | 18 +++++++++++------- 2001/williams/williams.c | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/2001/williams/Makefile b/2001/williams/Makefile index 2c065b1df..8fda2649f 100644 --- a/2001/williams/Makefile +++ b/2001/williams/Makefile @@ -68,7 +68,7 @@ CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11 # Optimization # -OPT= -O3 +OPT= -ggdb3 # Default flags for ANSI C compilation # diff --git a/2001/williams/README.md b/2001/williams/README.md index 92d508e5f..29ab18d4d 100644 --- a/2001/williams/README.md +++ b/2001/williams/README.md @@ -4,6 +4,17 @@ make ``` +### Bugs and (Mis)features: + +The current status of this entry is: + +``` +STATUS: known bug - please help us fix +``` + +For more detailed information see [2001 williams in bugs.md](/bugs.md#2001-williams). + + ## To use: @@ -12,13 +23,6 @@ make ``` -### Try: - -```sh -echo "Do or do not. There is no try." -``` - - ## Judges' remarks: [A strange game. The only winning move is not to diff --git a/2001/williams/williams.c b/2001/williams/williams.c index f4f334931..1369ec788 100644 --- a/2001/williams/williams.c +++ b/2001/williams/williams.c @@ -52,7 +52,7 @@ A]; }Ne(l,30); Y==1){ E;K; } else c=l.t=0;} Y==1&&h