From 65e28cb5b606ef0d2c5d4ed09bfee180d1c94db2 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:06:27 -0800 Subject: [PATCH 1/3] Format/typo check 2006/toledo3 --- 2006/toledo3/README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/2006/toledo3/README.md b/2006/toledo3/README.md index 246454bb0..0b8914b5c 100644 --- a/2006/toledo3/README.md +++ b/2006/toledo3/README.md @@ -4,6 +4,11 @@ make ``` +The author provided two alternate versions, one which adds a status bar and +another that makes it text only. The author also provided a version that they +tested with Windows. See [alternate code](#alternate-code) below. + + ## To use: @@ -19,7 +24,7 @@ make ``` -### Alternate versions: +### Alternate code: The author provided two additional versions, [toledo3-sbar.c](toledo3-sbar.c) and [toledo3-txt.c](toledo3-txt.c). Respectively these create a status bar and @@ -27,6 +32,10 @@ make the game text only. These are built by default. Use `toledo3-sbar` and `toledo3-txt` as you would `toledo3` above. +The author also provided a version that was [tested for some compilers in +Windows](layer.c). As we have no Windows system to test with you will have to +figure out how to compile it but it did work at one time in some set ups. + ## Judges' remarks: @@ -61,6 +70,7 @@ chess moves are allowed, except minor promotions on human side. The game will continue up to its logical conclusion, you make a mistake and the computer surpasses you. ;) + ### WHAT ABOUT THE ENGINE Uses an [alpha-beta](https://en.wikipedia.org/wiki/Alpha_Beta) search up to a @@ -101,11 +111,12 @@ gcc -O3 -fexpensive-optimizations prog.c -o prog -lX11 4. It will not update the window while it is "thinking" -5. The space character has many useful applications, specially +5. The space character has many useful applications, especially when it comes to the character limit (8). 6. I still don't understand what to do after semicolons. :P + ### CHALLENGES It is possible to convert this code into JavaScript with a @@ -114,6 +125,7 @@ graphical interface. Can you do it? Can the evaluation function be enhanced to make the program play stronger? + ### UPGRADES Using [toledo3-sbar.c](toledo3-sbar.c) (which is too large for this IOCCC size From 3ae2ec9cad29141e86db124931e67c1b831c2163 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:07:21 -0800 Subject: [PATCH 2/3] Update bugs.md for 2006/toledo2 --- bugs.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bugs.md b/bugs.md index a493b220d..02a5101ca 100644 --- a/bugs.md +++ b/bugs.md @@ -2395,11 +2395,14 @@ it is an `arm64` CPU - the Apple silicon chip). This fix, BTW, is a mix of a fix by [Yusuke Endoh](/winners.html#Yusuke_Endoh) and Cody's. Nevertheless there are two features that are not bugs. -By design this program is supposed to crash on termination. +By design this program is supposed to crash on termination. This actually no +longer does seems to happen but we don't need this to be added even if it might +be called a bug :-) You must type in caps (except in strings) and this program is indeed case-sensitive. + ### STATUS: missing files - please provide them A file is missing from the archive linked to by the author so we have not been From f6d6a3e4ec44b2ad3103b7b95771a79ef18634df Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:12:39 -0800 Subject: [PATCH 3/3] Format/typo check 2006/grothe I also renamed 'olympic.txt' to 'olympics.txt' as Olympics is clearer in name (or maybe just more correct?). Unfortunately I have no way to test the sound functionality. I just see the graphics. --- 2006/grothe/README.md | 29 +++++++++++++---------- 2006/grothe/{olympic.txt => olympics.txt} | 0 2 files changed, 16 insertions(+), 13 deletions(-) rename 2006/grothe/{olympic.txt => olympics.txt} (100%) diff --git a/2006/grothe/README.md b/2006/grothe/README.md index 5c92809bb..70115b689 100644 --- a/2006/grothe/README.md +++ b/2006/grothe/README.md @@ -25,7 +25,7 @@ There are other text files you may wish to try: ```sh ./grothe 65000000 10000000 1344 < arabian.txt -./grothe 65000000 10000000 1344 < olympic.txt +./grothe 65000000 10000000 1344 < olympics.txt ./grothe 65000000 10000000 1344 < test.txt ``` @@ -36,7 +36,8 @@ Most of the time, interference is annoying. This entry is the exception that proves the rule. What is a bug to some is a feature to this entry. :-) -## Selected Author's Comments: + +## Author's remarks: The program draws patterns on the screen that can be picked up by a [shortwave radio](https://en.wikipedia.org/wiki/Shortwave_radio). It emulates @@ -47,9 +48,9 @@ To be able to run the program you need to determine the following parameters: ``` - carrier_freq - base frequency used to host music - pixelclock - refresh rate of the monitor - horizontal_total - total scan along the horizontal axis +carrier_freq - base frequency used to host music +pixelclock - refresh rate of the monitor +horizontal_total - total scan along the horizontal axis ``` If you have `xvidtune` installed you can get the `pixelclock` and @@ -73,33 +74,35 @@ The core idea of using a machine to play music on AM radio goes all the way back to the [Altair computers](https://en.wikipedia.org/wiki/Altair_8800) and [Timex Sinclair ZX-81](https://en.wikipedia.org/wiki/ZX81)s. + ### Several example songs -Olympic Fanfare - from `antang@phakt.usc.edu` - Tony: +Olympics Fanfare - from `antang@phakt.usc.edu` - Tony: ``` - 4-9-91231,2222-321123123-9-91231,2222-32112321 +4-9-91231,2222-321123123-9-91231,2222-32112321 ``` Twinkle Twinkle Little Star - from `fsufunkyb@aol.com` - Ben Schmidt: ``` - 1199##9-6633221-9966332-9966332-1199#9-6633221- +1199##9-6633221-9966332-9966332-1199#9-6633221- ``` Generic Arabian Tune - from `rdippold@qualcomm.com` - Ron "Asbestos" Dippold: ``` - 453,54,4569564459,9#95458,8987453 54 +453,54,4569564459,9#95458,8987453 54 ``` Others can be found by doing a search for "touch tone phone songs". + ### Obfuscations -- Some numbers expressed in Octal, some in hex and some in decimal - "A foolish consistency is the hobgoblin of little minds" - Ralph Waldo - Emerson. +- Some numbers expressed in Octal, some in hex and some in decimal: +"A foolish consistency is the hobgoblin of little minds" - Ralph Waldo +Emerson. - Funky scoping, looking at the nanosleep section and `XsetWindowAttributes` declares local variables. @@ -133,7 +136,7 @@ AM](https://web.archive.org/web/20070612152538if_/http://silcnet.org/priikone/pr for a bit more information on the program (search for `Tempest-AM Radio Signal Transmitter`). -The paper\ +The paper [Soft Tempest: Hidden Data Transmission Using Electromagnetic Emanations](https://www.cl.cam.ac.uk/~mgk25/ih98-tempest.pdf) by Markus G. Kuhn's and Ross J. Anderson's. diff --git a/2006/grothe/olympic.txt b/2006/grothe/olympics.txt similarity index 100% rename from 2006/grothe/olympic.txt rename to 2006/grothe/olympics.txt