Address 2019 entries

In at least one case some -D flags had to be added to the Makefile.

Typo fixes and formatting fixes in some README.md files.

For the simply amazing 2019/karns I added a demo.sh which does a cat on
the two files (prog.c and maze) and then sleeps for two seconds then
runs the program then sleeps for two seconds then resets the terminal
(so the colours are messed up). This was added to the README.md file.

Several .gitignore files were added.

I'm aware that the graphics editing one does not now work under macOS
but I'm not sure if this is all versions so I just noted that it doesn't
seem to work with recent versions of macOS as I don't have a way to test
before Ventura (the current version).
This commit is contained in:
Cody Boone Ferguson committed 2023-03-08 09:00:28 -08:00
1 parent 7202c81b69
commit 3a4399bf8d
18 files changed
+127 -52

No files matched your search

+10
View File
@@ -17,6 +17,16 @@ Twitter: @jkarnss
./prog < README.md
./prog < prog.c
./prog < maze
The last two can be done in a sequence, first showing the respective files at
the terminal, like:
./demo.sh
### Selected Judges Remarks:
If you typically get lost in mazes, watching this program run might -- or might not, YMMV --
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#
# Demo of IOCCC 26 (2019) 'Most in need of whitespace' entry by Joshua Karns.
#
# Doesn't run the program on README.md as it's longer and slower.
#
# display prog.c to the user
echo "$ cat prog.c"
cat prog.c
sleep 2
# run the program on itself
echo "$ ./prog < prog.c"
sleep 2
./prog < prog.c
sleep 2
# reset terminal for colours
reset
# display maze
echo "$ cat maze"
cat maze
sleep 2
# run the program on maze
echo "$ ./prog < maze"
sleep 2
./prog < maze
sleep 2
# reset terminal
reset