From 58bc8c1a8b48ef4b78338510b802ceb3be946ec8 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 18 Nov 2023 06:56:34 -0800 Subject: [PATCH] Format/typo check 2004/burley --- 2004/burley/README.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/2004/burley/README.md b/2004/burley/README.md index 8d3d9a1d9..8f4e2259e 100644 --- a/2004/burley/README.md +++ b/2004/burley/README.md @@ -15,13 +15,6 @@ NOTE: you need to input a number first. See judges' remarks below for information on how to play. -### Try: - -```sh -echo "Do or do not. There is no try." -``` - - ## Judges' remarks: This is a [draw poker](https://en.wikipedia.org/wiki/Draw_poker) program. You @@ -53,15 +46,15 @@ Straight 4 times your bet Jacks or Better 1 times your bet ``` -The program allows you to go into debt. However I'm sure you would -never control-C kill the program just because you got behind, right? -On the other hand the program never willingly exits, so you have -to leave even when you are ahead. :-) +The program allows you to go into debt. However I'm sure you would never +control-C to kill the program just because you got behind, right? On the other +hand the program never willingly exits, so you have to leave even when you are +ahead. :-) Can you figure out a winning betting "strategy"? Then can you modify the program so this "strategy" no longer works? -Notice the clever use of `setjmp()` and `longjmp()` calls. Can you keep track +Notice the clever use of `setjmp(3)` and `longjmp(3)` calls. Can you keep track of what state is being saved and restored? NOTE: the author talks about how it is a single statement. This might not be