Changing heading level of 'Alternate code'

Change level 3 (###) to level 2 (##):

    sgit -e 's/^### \(Alternate code\)/## \1/g' '*README.md'

which is the same as:

    sgit -e 's/^### Alternate code/## Alternate code/g' '*README.md'

This is per discussion in GitHub.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-26 04:36:57 -07:00
1 parent b77347cc35
commit 684ed89d7e
62 files changed
+62 -62

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ make all
./anonymous
```
### Alternate code:
## Alternate code:
The original version of this entry was added, by request,
in order to show the code that was turned into the
+1 -1
View File
@@ -14,7 +14,7 @@ make all
./decot
```
### Alternate code:
## 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
+1 -1
View File
@@ -25,7 +25,7 @@ correctly. In later years, machine dependent code was discouraged. An alternate
version that will work with other systems is provided as alternate code below.
### Alternate code:
## Alternate code:
An alternate version exists which allows one to enjoy this entry on systems
other than a [VAX-11](https://en.wikipedia.org/wiki/VAX-11) or
+1 -1
View File
@@ -26,7 +26,7 @@ echo IOCCC | ./sicherman
./sicherman < sicherman.c | ./sicherman
```
### Alternate code:
## 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
+1 -1
View File
@@ -35,7 +35,7 @@ Also try:
echo IOCCC | ./hague 2>/dev/null
```
### Alternate code:
## Alternate code:
Whereas with some entries the change to `fgets()` (see the [FAQ](/faq.md) for
details on why this has been done) can be done in the original code this entry
+1 -1
View File
@@ -23,7 +23,7 @@ to read it for entertainment if nothing else.
./marshall
```
### Alternate code:
## Alternate code:
As some changes had to be made due to the problem of conflicting compiler
options briefly noted above we provide the code that demonstrates the problem so
+1 -1
View File
@@ -21,7 +21,7 @@ make all
./hines hines.c
```
### Alternate code:
## Alternate code:
An alternate version of this entry is in [hines.alt.c](hines.alt.c). With older
compilers you can try the alt version:
+1 -1
View File
@@ -16,7 +16,7 @@ make all
./westley
```
### Alternate code:
## Alternate code:
If you have an older compiler you can try compiling the original source code
which is true symmetry:
+1 -1
View File
@@ -21,7 +21,7 @@ program. See the [Alternate code](#alternate-code) section below for details.
./applin
```
### Alternate code:
## Alternate code:
As noted above a smaller version can be used in case your `cpp` has a hard time
with this entry.
+1 -1
View File
@@ -38,7 +38,7 @@ behaviour?
./dale "$(printf "the following files exist in this directory:\n%s\n" *)"
```
### Alternate code:
## Alternate code:
If you have an old enough compiler you can try the original version in
[dale.alt.c](dale.alt.c). To use:
+1 -1
View File
@@ -19,7 +19,7 @@ code](#alternate-code) below.
./isaak
```
### Alternate code:
## Alternate code:
The original version of this code is in [isaak.alt.c](isaak.alt.c).
The original entry starts with the line:
+1 -1
View File
@@ -24,7 +24,7 @@ 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
+1 -1
View File
@@ -55,7 +55,7 @@ You might enjoy looking at the output of:
cc -E westley.alt.c
```
### Alternate code:
## Alternate code:
To see if your compiler has the problem described above try:
+1 -1
View File
@@ -26,7 +26,7 @@ NOTE: this will run the program itself:
make clobber all
```
### Alternate code:
## Alternate code:
This code, which prints something slightly different, is provided as well.
+1 -1
View File
@@ -35,7 +35,7 @@ by chance or is killed.
./ovdluhe < README.md
```
### Alternate code:
## Alternate code:
The author suggested that one varies the definition of `P` from 2 through 10. As
it's a `#define` it's easy to set up. To use try:
+1 -1
View File
@@ -18,7 +18,7 @@ out. See [alternate code](#alternate-code) below for more details.
./paul
```
### Alternate code:
## Alternate code:
This version was described by the author like:
+1 -1
View File
@@ -48,7 +48,7 @@ place and the winner is the
loser](https://web.archive.org/web/20181023221954/https://www.chicagotribune.com/news/ct-xpm-2002-07-31-0207310310-story.html) :-)
### Alternate code:
## Alternate code:
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.
+1 -1
View File
@@ -30,7 +30,7 @@ echo 3 | ./baruch
Why is there no output?
### Alternate code:
## Alternate code:
This alternate code is for the [very few](https://en.wikipedia.org/wiki/0)
[users](https://en.wikipedia.org/wiki/Microsoft_Windows)
+1 -1
View File
@@ -38,7 +38,7 @@ This program will enter an infinite loop if input is not a number > 0.
./westley 5
```
### Alternate code:
## Alternate code:
If you have an old enough compiler try and to see how C has changed over the years:
+1 -1
View File
@@ -39,7 +39,7 @@ show correctly!
```
### Alternate code:
## Alternate code:
The author provided a version for the US which we added. To build:
+1 -1
View File
@@ -39,7 +39,7 @@ If you have gcc < 2.3.3 (i.e. the entry can compile):
```
### Alternate code:
## Alternate code:
To use:
+1 -1
View File
@@ -34,7 +34,7 @@ NOTE: an alternate version exists. See Alternate code section below.
```
### Alternate code:
## Alternate code:
To use:
+1 -1
View File
@@ -23,7 +23,7 @@ where:
`[cabbage]` is a CABBAGE description file (default: `rince.c`)
### Alternate code: slowing down the game
## Alternate code: slowing down the game
Some people may want to slow down the game by increasing the
value 17 in the lines:
+1 -1
View File
@@ -30,7 +30,7 @@ make all
```
### Alternate code:
## Alternate code:
To build the alternative code try:
+1 -1
View File
@@ -33,7 +33,7 @@ solving the maze. This is a feature, not a bug. See [bugs.md](/bugs.md) for more
details.
### Alternate code:
## Alternate code:
This version uses `usleep(3)` with the `Z` (defined in the Makefile, default
`3000`) microseconds to make it easier to see the maze being solved in real
+1 -1
View File
@@ -28,7 +28,7 @@ make all
```
### Alternate code:
## Alternate code:
While it may not have been the intention of the author, the
judges noted that the C pre-processed version (with the `#include`s
+1 -1
View File
@@ -26,7 +26,7 @@ make clobber all LEVEL=6
./vanschnitz
```
### Alternate code:
## Alternate code:
The authors provided a spoiler version of the program. Originally uuencoded we
have decoded it for the wider audience in [spoiler.c](spoiler.c). The
+1 -1
View File
@@ -39,7 +39,7 @@ And for a good time, try:
sh ./clock3
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [westley.alt.c](westley.alt.c), is provided.
This version is the original code and does not contain the above mentioned
+1 -1
View File
@@ -27,7 +27,7 @@ make all
Why is there different output?
### Alternate code:
## Alternate code:
NOTE: The original entry was just a text based pootifier. To build
that version try:
+1 -1
View File
@@ -28,7 +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:
## Alternate code:
As noted above this entry will not work as it stands for macOS and there are
some important notes as well as a description of how the fixed version works
+1 -1
View File
@@ -27,7 +27,7 @@ Try modifying the code so that it will show another Moon phase based on input
or else just by the code itself. Bonus points if you can make it show all!
### Alternate code:
## Alternate code:
The author noted that those in the southern hemisphere might want to change
`acos(l/2)` into `acos(-l/2)` which we have done in the alternate version.
+1 -1
View File
@@ -18,7 +18,7 @@ make
```
### Alternate code:
## Alternate code:
The author provided a way to speed it up a bit and also how to make it so it
doesn't crash on losing. The idea that it crashes on losing was too good to
+1 -1
View File
@@ -73,7 +73,7 @@ diff herrmann2.alt.c herrmann2.orig.c && echo "output matches with original code
```
### Alternate code:
## Alternate code:
If you wish to use the original version that does not work for all platforms,
you can make use of the [herrmann2.alt.c](herrmann2.alt.c) by running:
+1 -1
View File
@@ -42,7 +42,7 @@ paddle. See below Alternate code.
```
### Alternate code:
## Alternate code:
To use:
+1 -1
View File
@@ -26,7 +26,7 @@ make
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [westley.alt.c](westley.alt.c), is provided.
This alternate code might be less portable.
+1 -1
View File
@@ -36,7 +36,7 @@ QWERTY keyboards. Rogue players, vi users, and Dvorak typists are
invited to get lost (or use the alt version)!
### Alternate code:
## Alternate code:
To use:
+1 -1
View File
@@ -22,7 +22,7 @@ make
./gavare > ioccc_ray.ppm
```
### Alternate code:
## Alternate code:
The author provided [on their web page for the
entry](https://gavare.se/ioccc/ioccc_gavare.c.html) an unobfuscated version that was used
+1 -1
View File
@@ -24,7 +24,7 @@ make
./hoyle 2 0 1 0 -0.001
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [hoyle.alt.c](hoyle.alt.c), is provided.
This alternate code has a missing newline and used a non-standard tab stop size.
+1 -1
View File
@@ -42,7 +42,7 @@ What happens if you feed the program source to the program? Can you figure out
why?
### Alternate code:
## Alternate code:
The judges modified the program to print its result. The original
program returned the result as an exit code:
+1 -1
View File
@@ -33,7 +33,7 @@ Some have pointed out that this will not work for https initially
for two reasons. For a starting point see the alternate code section below.
### Alternate code:
## Alternate code:
As noted this will not work for https. This is because it does not scan for
https but also a secure connection needs to be set up before http commands can
+1 -1
View File
@@ -29,7 +29,7 @@ another) while the X11 server is running.
echo "Do or do not. There is no try."
```
### Alternate code:
## Alternate code:
The [vince.alt.c](vince.alt.c) code of the submission will run on SGI IRIX and
also has the recursive CPP macro (which sneaked in accidentally) removed.
+1 -1
View File
@@ -29,7 +29,7 @@ echo "Do or do not. There is no try."
```
### Alternate code:
## Alternate code:
To compile:
+1 -1
View File
@@ -45,7 +45,7 @@ It is possible to download a number of Mod files from [The Mod
Archive](http://modarchive.org).
### Alternate code:
## Alternate code:
Assuming that `make` is similar enough try:
+1 -1
View File
@@ -32,7 +32,7 @@ this by default.
### Alternate code:
## Alternate code:
An alternate version of this entry, `endoh1.alt.c`, is provided.
This alternate code is a de-obfuscated version of `endoh1.c`.
+1 -1
View File
@@ -34,7 +34,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:
## Alternate code:
This alternate code fixes the program that would throw off those who know German
where the sound of 'V' is 'F' and so the program had the letter be 'F'. A
+1 -1
View File
@@ -24,7 +24,7 @@ NOTE: N is an integer from 0 to 255.
./konno 30
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [konno.alt.c](konno.alt.c), is provided.
This alternate code is an unobfuscated version of the winning code.
+1 -1
View File
@@ -67,7 +67,7 @@ fire](https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing)) :-)
```
### Alternate code:
## Alternate code:
For those few who might use Windows, To compile:
+1 -1
View File
@@ -28,7 +28,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:
## Alternate code:
An alternate version of this entry, [zeitak.alt.c](zeitak.alt.c), is provided.
The file [zeitak.alt.c](zeitak.alt.c) provides a version that has been slightly
+1 -1
View File
@@ -28,7 +28,7 @@ available. See the [Alternate code](#alternate-code) section below.
NOTE: to quit the program type `QUITEMU`.
### Alternate code:
## Alternate code:
An alternate version, which should compile in Windows, is provided. To use try:
+1 -1
View File
@@ -27,7 +27,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:
## Alternate code:
The alternate code is included as [prog.alt.c](prog.alt.c) so you can more
easily see the difference in what it might look like if the C was more
+1 -1
View File
@@ -31,7 +31,7 @@ echo 'Want to hear me beep?' | ./prog > audio_file.raw
echo 'No. I want chocolate!' | ./prog | mplayer -demuxer rawaudio -
```
### Alternate code:
## Alternate code:
The alternate code, [prog.alt.c](prog.alt.c), is based on the author's
instructions on how to get it to work with Windows. This has not been tested but
+1 -1
View File
@@ -44,7 +44,7 @@ cp war-and-peace.txt nuked.tmp
./avgtime.sh 100 ./prog war-and-peace.txt nuked.tmp
```
### Alternate code:
## Alternate code:
An alternate version of this entry, `prog.alt.c`, is provided.
This alternate code does not use a 64 bit FNV hash.
+1 -1
View File
@@ -22,7 +22,7 @@ make
./prog < prog.c
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided
This alternate code was supposed to compile without warnings, however
+1 -1
View File
@@ -21,7 +21,7 @@ make
./prog < README.md
```
### Alternate code:
## Alternate code:
An alternate version of this entry, `prog.alt.c`, is provided. As mentioned in
the Author's remarks, the alternate version lacks a useful bug fix.
+1 -1
View File
@@ -28,7 +28,7 @@ make
make test
```
### Alternate code:
## Alternate code:
The author provided an alternate version which has a simpler keyboard for the
monkey Eric. See his comments under the 'keyboards' section, briefly referred to
+1 -1
View File
@@ -34,7 +34,7 @@ make
```
### Alternate code:
## Alternate code:
There is an alternate version of this code that flushes stdout after writing a newline.
See the Author's remarks for more information.
+1 -1
View File
@@ -61,7 +61,7 @@ find . -name '.[A-Z]*' -delete
though one might want to check that the program is not currently running. :-)
### Alternate code:
## Alternate code:
An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. This alternate
code might not work as well on macOS.
+1 -1
View File
@@ -37,7 +37,7 @@ arg. It might also print strange output with more than one arg.
./prog 128 128 128 128
```
### Alternate code:
## Alternate code:
By default, this code compiles for Little Endian machines.
An alternate version is also compiled for Big Endian machines.
+1 -1
View File
@@ -29,7 +29,7 @@ make
./prog unwinnable.txt
```
### Alternate code:
## Alternate code:
An alternate version of this entry, [prog.alt.c](prog.alt.c), is provided. This
alternate code lacks the additional rule to flag all unprobed cells. See the
+1 -1
View File
@@ -23,7 +23,7 @@ make
# And watch closely for 15-20 seconds
```
### Alternate code:
## Alternate code:
An alternate version of this entry, `prog.alt.c`, is provided. This alternate code uses Unicode letters.
+1 -1
View File
@@ -25,7 +25,7 @@ echo IOCCC | ./prog
./prog < prog.x86_64.asm
```
### Alternate code:
## 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.
+1 -1
View File
@@ -28,7 +28,7 @@ echo International Obfuscated C Code Contest | ./prog
./prog < input.txt
```
### Alternate code:
## Alternate code:
There is an alternate version of this code in `prog.alt.c` where the main code is a macro.