diff --git a/1984/anonymous/README.md b/1984/anonymous/README.md index 8a862be10..b80496700 100644 --- a/1984/anonymous/README.md +++ b/1984/anonymous/README.md @@ -16,6 +16,7 @@ make all ./anonymous ``` + ## Alternate code: The original version of this entry was added, by request, @@ -23,6 +24,7 @@ in order to show the code that was turned into the [tattoo](https://web.archive.org/web/20070120220721/https://thomasscovell.com/tattoo.php), as the alternate code. See below for the tattoo side-by-side with the code. + ### Alternate build: ```sh diff --git a/1984/decot/README.md b/1984/decot/README.md index 447258955..e34209351 100644 --- a/1984/decot/README.md +++ b/1984/decot/README.md @@ -31,12 +31,14 @@ For more detailed information see [1984 decot in bugs.md](/bugs.md#1984-decot). ./decot ``` + ## Alternate code: This alternate code, the original, requires a compiler that supports `-traditional-cpp` or an old enough compiler. If you have such a compiler you can use this version. + ### Alternate build: ```sh diff --git a/1985/sicherman/README.md b/1985/sicherman/README.md index a71605cfd..c6451dfc4 100644 --- a/1985/sicherman/README.md +++ b/1985/sicherman/README.md @@ -32,14 +32,15 @@ echo IOCCC | ./sicherman ./sicherman < sicherman.c | ./sicherman ``` + ## Alternate code: This alternate version, which is the original entry, requires either an old enough compiler or a compiler that supports `-traditional-cpp`. If you have such a compiler you can try this version. -### Alternate build: +### Alternate build: ```sh make alt @@ -51,8 +52,8 @@ make alt ./sicherman.alt < file ``` -### Alternate try: +### Alternate try: ```sh ./sicherman.alt < README.md | ./sicherman.alt diff --git a/1986/marshall/README.md b/1986/marshall/README.md index e070470e4..702ff5ed5 100644 --- a/1986/marshall/README.md +++ b/1986/marshall/README.md @@ -24,6 +24,7 @@ if nothing else. ./marshall ``` + ## Alternate code: Due to the different [conflicting problems](compilers.md) with gcc and clang, we @@ -31,6 +32,7 @@ instead offer the problematic code as an alternate version whereas [marshall.c](marshall.c) has both the infinite loop and the complicated arg to `_exit()` commented out, changing the value passed into `_exit()` to `1`. + ### Alternate build: To see if your compiler has the problems noted: diff --git a/1986/wall/README.md b/1986/wall/README.md index 469cd8c39..9500c49d1 100644 --- a/1986/wall/README.md +++ b/1986/wall/README.md @@ -22,6 +22,7 @@ make all If you have an old compiler or a compiler that supports `-traditional-cpp` you might enjoy looking at the original source in [wall.alt.c](wall.alt.c). + ### Alternate build: ```sh diff --git a/1987/hines/README.md b/1987/hines/README.md index fd1ed5530..0ea4dede4 100644 --- a/1987/hines/README.md +++ b/1987/hines/README.md @@ -24,6 +24,7 @@ make all ./hines hines.c ``` + ## Alternate code: An alternate version of this entry is in [hines.alt.c](hines.alt.c). With older diff --git a/1987/lievaart/README.md b/1987/lievaart/README.md index 1aae535c3..037f965a9 100644 --- a/1987/lievaart/README.md +++ b/1987/lievaart/README.md @@ -31,6 +31,7 @@ To see what it would have looked like without the size restrictions: # enter a level and start playing as described below ``` + ## Alternate code: If you have an old enough compiler you might wish to try using it. To use: diff --git a/1987/westley/README.md b/1987/westley/README.md index d0d2aa76b..66cf2900a 100644 --- a/1987/westley/README.md +++ b/1987/westley/README.md @@ -18,6 +18,7 @@ make all ./westley ``` + ## Alternate code: If you have an older compiler you can try compiling the original source code diff --git a/1988/applin/README.md b/1988/applin/README.md index 95b12b817..e6e7a7ff9 100644 --- a/1988/applin/README.md +++ b/1988/applin/README.md @@ -23,11 +23,13 @@ program. See the [Alternate code](#alternate-code) section below for details. ./applin ``` + ## Alternate code: As noted above a smaller version can be used in case your `cpp` has a hard time with this entry. + ### Alternate build: ```sh diff --git a/1988/dale/README.md b/1988/dale/README.md index 4400c9585..25485b7e3 100644 --- a/1988/dale/README.md +++ b/1988/dale/README.md @@ -39,6 +39,7 @@ behaviour? ./dale "$(printf "the following files exist in this directory:\n%s\n" *)" ``` + ## Alternate code: If you have an old enough compiler you can try the original version in diff --git a/1988/isaak/README.md b/1988/isaak/README.md index fa6fee245..827b4bf36 100644 --- a/1988/isaak/README.md +++ b/1988/isaak/README.md @@ -21,6 +21,7 @@ code](#alternate-code) below. ./isaak ``` + ## Alternate code: The original version of this code is in [isaak.alt.c](isaak.alt.c). @@ -39,6 +40,7 @@ using that macro for `#define`. This version will not likely work on modern systems if you can even get it to compile. + ### Alternate build: ```sh diff --git a/1988/litmaath/README.md b/1988/litmaath/README.md index 6b9ed005e..86b8ca10a 100644 --- a/1988/litmaath/README.md +++ b/1988/litmaath/README.md @@ -27,15 +27,15 @@ code](#alternate-code) section below. ./litmaath eschew obfuscation ``` -## Alternate code: +## Alternate code: This alternate code, added to help understand the entry and for fun, is code that we suggested at the time of the entry publication but which we never put in a file. -### Alternate build: +### Alternate build: ```sh make alt @@ -43,6 +43,7 @@ make alt Use `litmaath.alt` as you would `litmaath` above. + ### Alternate try: ```sh diff --git a/1988/spinellis/README.md b/1988/spinellis/README.md index 312bd57f0..7d215332f 100644 --- a/1988/spinellis/README.md +++ b/1988/spinellis/README.md @@ -25,6 +25,7 @@ and try: rm -f spinellis ; cc spinellis.c -o spinellis < input2.txt && ./spinellis ``` + ## Alternate code: For clang try the alt code like: diff --git a/1988/westley/README.md b/1988/westley/README.md index aed701d33..bc375e948 100644 --- a/1988/westley/README.md +++ b/1988/westley/README.md @@ -57,6 +57,7 @@ You might enjoy looking at the output of: cc -E westley.alt.c ``` + ## Alternate code: To see if your compiler has the problem described above try: diff --git a/1989/jar.1/README.md b/1989/jar.1/README.md index 0100d5a82..e57b52a2c 100644 --- a/1989/jar.1/README.md +++ b/1989/jar.1/README.md @@ -28,10 +28,12 @@ NOTE: this will run the program itself: make clobber all ``` + ## Alternate code: This code, which prints something slightly different, is provided as well. + ### Alternate build: NOTE: this will run the program itself. diff --git a/1989/ovdluhe/README.md b/1989/ovdluhe/README.md index 9f43d0650..e24a74579 100644 --- a/1989/ovdluhe/README.md +++ b/1989/ovdluhe/README.md @@ -38,6 +38,7 @@ by chance or is killed. ./ovdluhe < README.md ``` + ## Alternate code: The author suggested that one varies the definition of `P` from 2 through 10. As @@ -46,7 +47,6 @@ it's a `#define` it's easy to set up. ### Alternate build: - ```sh make CFLAGS="-DP=9" clobber alt ``` diff --git a/1989/paul/README.md b/1989/paul/README.md index c2cbf011a..6db62d9bf 100644 --- a/1989/paul/README.md +++ b/1989/paul/README.md @@ -20,6 +20,7 @@ out. See [alternate code](#alternate-code) below for more details. ./paul ``` + ## Alternate code: This version was described by the author like: @@ -30,6 +31,7 @@ the program. Besides it is fun to watch the tape zooming back and forth as the program runs. A much better debugger or trace could easily be added. + ### Alternate build: ```sh diff --git a/1989/tromp/README.md b/1989/tromp/README.md index b5201c00e..b8f5be0a1 100644 --- a/1989/tromp/README.md +++ b/1989/tromp/README.md @@ -57,6 +57,7 @@ loser](https://web.archive.org/web/20181023221954/https://www.chicagotribune.com The author provided an alternate version of the code with some improvements. See the judges' additional remarks in the author's remarks, for more details. + ### Alternate build: ```sh diff --git a/1990/baruch/README.md b/1990/baruch/README.md index 52a61e895..5e50b60e8 100644 --- a/1990/baruch/README.md +++ b/1990/baruch/README.md @@ -33,6 +33,7 @@ echo 3 | ./baruch Why is there no output? + ## Alternate code: This alternate code is for the [very few](https://en.wikipedia.org/wiki/0) @@ -43,6 +44,7 @@ Turbo-C or MSC, the code is based on the authors' remarks except that the `" improved output though admittedly we have no way to test the compilers in question. YMMV. + ### Alternate build: ```sh diff --git a/1990/westley/README.md b/1990/westley/README.md index e1ea2571a..d76c5fc7d 100644 --- a/1990/westley/README.md +++ b/1990/westley/README.md @@ -33,6 +33,7 @@ The number should be greater than 0. ./westley 5 ``` + ## Alternate code: If you have an old enough compiler try and to see how C has changed over the years: diff --git a/1992/albert/README.md b/1992/albert/README.md index 8a3ac1ca0..336168d26 100644 --- a/1992/albert/README.md +++ b/1992/albert/README.md @@ -27,6 +27,7 @@ make all ./albert 1234567890123456789 ``` + ## Alternate code: An alternate version of this entry, [albert.alt.c](albert.alt.c), is provided. diff --git a/1992/buzzard.2/README.md b/1992/buzzard.2/README.md index 36db3f81d..0d63c7d37 100644 --- a/1992/buzzard.2/README.md +++ b/1992/buzzard.2/README.md @@ -49,6 +49,7 @@ Fourth: Sorry, this is third! ``` + ## Alternate code: An alternate version of this entry, [buzzard.2.alt.c](buzzard.2.alt.c), is diff --git a/1992/westley/README.md b/1992/westley/README.md index 36ffaad83..623c3c89d 100644 --- a/1992/westley/README.md +++ b/1992/westley/README.md @@ -44,8 +44,8 @@ show correctly! The author provided a version for the US which we added. To build: -### Alternate build: +### Alternate build: ```sh make alt diff --git a/1993/plummer/README.md b/1993/plummer/README.md index cb7e38174..5baeda1c8 100644 --- a/1993/plummer/README.md +++ b/1993/plummer/README.md @@ -34,6 +34,7 @@ NOTE: an alternate version exists. See Alternate code section below. ``` + ## Alternate code: To use: diff --git a/1995/garry/README.md b/1995/garry/README.md index 64cd1c8bb..a20c41580 100644 --- a/1995/garry/README.md +++ b/1995/garry/README.md @@ -36,8 +36,8 @@ judges noted that the C pre-processed version (with the `#include`s left intact) looked very much like a rat "dropping core". See [garry.alt.c](garry.alt.c) and judge for yourself! -### Alternate build: +### Alternate build: ```sh make alt @@ -49,6 +49,7 @@ make alt ./garry.alt output_file ``` + ### Alternate try: ```sh diff --git a/1995/vanschnitz/README.md b/1995/vanschnitz/README.md index af165a67f..35eb53583 100644 --- a/1995/vanschnitz/README.md +++ b/1995/vanschnitz/README.md @@ -40,6 +40,7 @@ make clobber all LEVEL=6 ./vanschnitz ``` + ## Alternate code: The authors provided a spoiler version of the program. Originally uuencoded we diff --git a/1996/westley/README.md b/1996/westley/README.md index dcfedd807..0686217ac 100644 --- a/1996/westley/README.md +++ b/1996/westley/README.md @@ -39,6 +39,7 @@ And for a good time, try: sh ./clock3 ``` + ## Alternate code: An alternate version of this entry, [westley.alt.c](westley.alt.c), is provided. diff --git a/1998/dlowe/README.md b/1998/dlowe/README.md index 562ee2d1f..f4363a2d7 100644 --- a/1998/dlowe/README.md +++ b/1998/dlowe/README.md @@ -41,6 +41,7 @@ For more detailed information see [1998 dlowe in bugs.md](/bugs.md#1998-dlowe). Why is there different output? + ## Alternate code: NOTE: The original entry was just a text based pootifier. To build diff --git a/1998/schweikh1/README.md b/1998/schweikh1/README.md index 1e49b1875..219ea9426 100644 --- a/1998/schweikh1/README.md +++ b/1998/schweikh1/README.md @@ -28,6 +28,7 @@ how to use it. NOTE: a limitation with the entry was that it required `gcc` but this limitation has been removed to make it more portable, requiring only `cc`. + ## Alternate code: As noted above this entry will not work as it stands for macOS and there are diff --git a/2000/thadgavin/README.md b/2000/thadgavin/README.md index 4bf710bcc..c5f27ca31 100644 --- a/2000/thadgavin/README.md +++ b/2000/thadgavin/README.md @@ -45,6 +45,7 @@ screen. echo "Do or do not. There is no try." ``` + ## Alternate code: An alternate version exists which allows you to slow down the printing of the diff --git a/2004/gavare/README.md b/2004/gavare/README.md index 29c3efee4..37f191b62 100644 --- a/2004/gavare/README.md +++ b/2004/gavare/README.md @@ -25,6 +25,7 @@ make ./gavare > ioccc_ray.ppm ``` + ## Alternate code: The author provided [on their web page for the diff --git a/2004/hoyle/README.md b/2004/hoyle/README.md index eb9013465..8090f9ed9 100644 --- a/2004/hoyle/README.md +++ b/2004/hoyle/README.md @@ -27,6 +27,7 @@ make ./hoyle 2 0 1 0 -0.001 ``` + ## Alternate code: An alternate version of this entry, [hoyle.alt.c](hoyle.alt.c), is provided. diff --git a/2005/toledo/README.md b/2005/toledo/README.md index 7f63ffaac..2b5fd800a 100644 --- a/2005/toledo/README.md +++ b/2005/toledo/README.md @@ -27,6 +27,7 @@ make ./toledo a b ``` + ## Alternate code: Two alternate versions of this entry, [toledo2.c](toledo2.c) and diff --git a/2005/vince/README.md b/2005/vince/README.md index 104549f6b..d00b520ca 100644 --- a/2005/vince/README.md +++ b/2005/vince/README.md @@ -32,6 +32,7 @@ another) while the X11 server is running. echo "Do or do not. There is no try." ``` + ## Alternate code: The [vince.alt.c](vince.alt.c) code of the submission will run on SGI IRIX and diff --git a/2006/toledo2/README.md b/2006/toledo2/README.md index cbc180a6e..a7f0bed71 100644 --- a/2006/toledo2/README.md +++ b/2006/toledo2/README.md @@ -58,11 +58,13 @@ RUN To end the program hit ctrl-z. + ## Alternate code: This version, as noted, should work for DOS/Windows. It uses non-standard functions in place of `read(2)` and `write(2)`. + ### Alternate build: ```sh diff --git a/2012/endoh1/README.md b/2012/endoh1/README.md index b1be116ff..27db6498a 100644 --- a/2012/endoh1/README.md +++ b/2012/endoh1/README.md @@ -34,7 +34,6 @@ Also try using `endoh1_color` as you would `endoh1` above. `make` will compile this by default. - ## Alternate code: An alternate version of this entry, `endoh1.alt.c`, is provided. diff --git a/2012/kang/README.md b/2012/kang/README.md index fa6693d97..d58aead09 100644 --- a/2012/kang/README.md +++ b/2012/kang/README.md @@ -35,6 +35,7 @@ echo "full spelling of an English cardinal numeral less than a quadrillion" | ./ How does it have no `u` or `o` in a string in the source code and yet it gets `uno` right? + ## Alternate code: This alternate code fixes the program that would throw off those who know German @@ -45,6 +46,7 @@ Germans that causes other problems for Germans so if you're German you'll just have to deal with it :-) It is, however, good as you can appreciate the entry even more. + ### Alternate build: ```sh @@ -58,8 +60,8 @@ echo vier | ./kang.alt echo uno | ./kang.alt ``` -### Alternate try: +### Alternate try: ```sh ./de.alt.sh # German 0 through 13 both with and without umlaut diff --git a/2012/konno/README.md b/2012/konno/README.md index f3cd3f513..62d8a7ec5 100644 --- a/2012/konno/README.md +++ b/2012/konno/README.md @@ -27,6 +27,7 @@ NOTE: N is an integer from 0 to 255. ./konno 30 ``` + ## Alternate code: An alternate version of this entry, [konno.alt.c](konno.alt.c), is provided. diff --git a/2012/zeitak/README.md b/2012/zeitak/README.md index 36245318d..4f0b83284 100644 --- a/2012/zeitak/README.md +++ b/2012/zeitak/README.md @@ -31,6 +31,7 @@ try [incorrect.c](incorrect.c) and the program itself. NOTE: it prints an error and exits on the first nesting error so it will not detect multiple issues! + ## Alternate code: An alternate version of this entry, [zeitak.alt.c](zeitak.alt.c), is provided. diff --git a/2013/cable3/README.md b/2013/cable3/README.md index 4f5105418..8e00fac45 100644 --- a/2013/cable3/README.md +++ b/2013/cable3/README.md @@ -40,6 +40,7 @@ For more detailed information see [2013 cable3 in bugs.md](/bugs.md#2013-cable3) NOTE: to quit the program type `QUITEMU`. + ## Alternate code: An alternate version, which should compile in Windows, is provided. To use try: diff --git a/2014/deak/README.md b/2014/deak/README.md index 8c9fa1edc..137723d68 100644 --- a/2014/deak/README.md +++ b/2014/deak/README.md @@ -30,6 +30,7 @@ compile. See [alternate code](#alternate-code) below. Try changing bounding box coordinates in the source to explore various regions of the fractal. + ## Alternate code: The alternate code is included as [prog.alt.c](prog.alt.c) so you can more diff --git a/2014/vik/README.md b/2014/vik/README.md index 7f4be16d8..d69ff896a 100644 --- a/2014/vik/README.md +++ b/2014/vik/README.md @@ -44,6 +44,7 @@ echo 'Want to hear me beep?' | ./prog > audio_file.raw echo 'No. I want chocolate!' | ./prog | mplayer -demuxer rawaudio - ``` + ## Alternate code: The alternate code, [prog.alt.c](prog.alt.c), is based on the author's diff --git a/2015/burton/README.md b/2015/burton/README.md index 5e1fd0baf..54a2b69f3 100644 --- a/2015/burton/README.md +++ b/2015/burton/README.md @@ -52,6 +52,7 @@ grep '[0-9]' prog.c man ./calc.1 ``` + ## Alternate code: An alternate version of this entry, `prog.alt.c`, is provided. diff --git a/2015/duble/README.md b/2015/duble/README.md index 93299d06d..a9d131f05 100644 --- a/2015/duble/README.md +++ b/2015/duble/README.md @@ -32,6 +32,7 @@ DRAFT=1 ./prog < prog.c ./prog < prog.c ``` + ## Alternate code: An alternate version of this entry, prog.alt.c, is provided. This alternate diff --git a/2015/endoh4/README.md b/2015/endoh4/README.md index e4e446929..7fb3c4f29 100644 --- a/2015/endoh4/README.md +++ b/2015/endoh4/README.md @@ -31,6 +31,7 @@ make ./prog $(< Makefile) ``` + ## Alternate code: An alternate version of this entry, `prog.alt.c`, is provided.\ diff --git a/2015/howe/README.md b/2015/howe/README.md index efb2c6cbb..d58a4d21a 100644 --- a/2015/howe/README.md +++ b/2015/howe/README.md @@ -47,6 +47,7 @@ cp war-and-peace.txt nuked.tmp ./avgtime.sh 100 ./prog war-and-peace.txt nuked.tmp ``` + ## Alternate code: An alternate version of this entry, `prog.alt.c`, is provided. diff --git a/2018/anderson/README.md b/2018/anderson/README.md index fdc14b961..6a61fcd02 100644 --- a/2018/anderson/README.md +++ b/2018/anderson/README.md @@ -25,6 +25,7 @@ make ./prog < README.md ``` + ## Alternate code: An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. diff --git a/2018/burton1/README.md b/2018/burton1/README.md index 198f55b1e..187fd1dba 100644 --- a/2018/burton1/README.md +++ b/2018/burton1/README.md @@ -25,6 +25,7 @@ make ./prog < prog.c ``` + ## Alternate code: An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided diff --git a/2018/ciura/README.md b/2018/ciura/README.md index 6952abb0f..09fc2a697 100644 --- a/2018/ciura/README.md +++ b/2018/ciura/README.md @@ -24,6 +24,7 @@ make ./prog < README.md ``` + ## Alternate code: An alternate version of this entry, `prog.alt.c`, is provided. As mentioned in diff --git a/2018/ferguson/README.md b/2018/ferguson/README.md index 693b3af10..0ebd767cf 100644 --- a/2018/ferguson/README.md +++ b/2018/ferguson/README.md @@ -31,6 +31,7 @@ make make test ``` + ## Alternate code: The author provided an alternate version which has a simpler keyboard for the diff --git a/2019/duble/README.md b/2019/duble/README.md index 023df9a37..0a162d3d0 100644 --- a/2019/duble/README.md +++ b/2019/duble/README.md @@ -75,6 +75,7 @@ find . -name '.[A-Z]*' -delete though one might want to check that the program is not currently running. :-) + ## Alternate code: An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. This alternate diff --git a/2020/burton/README.md b/2020/burton/README.md index 72b8c78f9..55ace2c9b 100644 --- a/2020/burton/README.md +++ b/2020/burton/README.md @@ -46,6 +46,7 @@ For more detailed information see [2020 burton in bugs.md](/bugs.md#2020-burton) ./prog 128 128 128 128 ``` + ## Alternate code: By default, this code compiles for Little Endian machines. diff --git a/2020/endoh1/README.md b/2020/endoh1/README.md index e0caafdc8..d29b5a0ae 100644 --- a/2020/endoh1/README.md +++ b/2020/endoh1/README.md @@ -32,6 +32,7 @@ make ./prog unwinnable.txt ``` + ## Alternate code: An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. This diff --git a/2020/endoh3/README.md b/2020/endoh3/README.md index 95d19b8c0..9bf07b21e 100644 --- a/2020/endoh3/README.md +++ b/2020/endoh3/README.md @@ -26,6 +26,7 @@ make # And watch closely for 15-20 seconds ``` + ## Alternate code: An alternate version of this entry, `prog.alt.c`, is provided. This alternate code uses Unicode letters. diff --git a/2020/kurdyukov1/README.md b/2020/kurdyukov1/README.md index 25809d182..465b3e167 100644 --- a/2020/kurdyukov1/README.md +++ b/2020/kurdyukov1/README.md @@ -28,6 +28,7 @@ echo IOCCC | ./prog ./prog < prog.x86_64.asm ``` + ## Alternate code: An even smaller alternate version of this entry, prog.alt.c, is provided. This code does not contain any headers, nor any workaround for WIN32 based platforms. diff --git a/2020/kurdyukov3/README.md b/2020/kurdyukov3/README.md index dbc3d6b6e..77cbb1c41 100644 --- a/2020/kurdyukov3/README.md +++ b/2020/kurdyukov3/README.md @@ -31,6 +31,7 @@ echo International Obfuscated C Code Contest | ./prog ./prog < input.txt ``` + ## Alternate code: There is an alternate version of this code in `prog.alt.c` where the main code is a macro.