release winning entries of IOCCC28 under the year 2024
Congratulations to: * 2024/anders - Prize in sound coding - layered music generator * 2024/burton - Prize in pentagrammatology - wordle hard mode solver * 2024/cable1 - Prize in bot talk - LLM inference engine * 2024/cable2 - Prize in murky waters - salmon recipe * 2024/carlini - Prize in perfect timing - Intel 4004 emulation * 2024/codemeow - Prize in tray planting - bonsai generator * 2024/endoh1 - Prize in patient pointillism - slow ray tracer in CPP * 2024/endoh2 - Prize in solid body physics - rotating rigid body simulation * 2024/ferguson1 - Prize in diabolical logistics - Oregon trail pact with the devil * 2024/ferguson2 - Prize in yil-tas - Navajo code talker translator * 2024/howe - Nice accent eh-ward - mini vi * 2024/kramer - Prize in linguistic arithmetic - natural language numerical calculator * 2024/kurdyukov1 - Prize in phased periodicity - phase of the Moon * 2024/kurdyukov2 - Prize in art restoration - JPEG artifact removal * 2024/kurdyukov3 - Prize in virtual quietus - gaming VM and doom * 2024/kurdyukov4 - Prize in embiggening - encode without literals * 2024/maffiodo - Prize in creative interpretation - Jav\*script interpreter * 2024/mills - Prize in ℤ₃ - Infocom v3 story interpreter * 2024/stedolan - Best one liner - icon from MD5 * 2024/straadt - Prize in imitative rebooting - OpenRISC CPU and Linux * 2024/tmarrec - Prize in cyclonic coding - 3D tornado simulation * 2024/tompng - Prize in quasi bijection - vortex encryptor decryptor * 2024/weaver - Sur prize - rickroll Ran `make update` to perform the above. new file: 2024/burton/.entry.json
This commit is contained in:
1 parent
10512e6c79
commit
09750f8899
443 files changed
+182938
-231
No files matched your search
Executable
+183
@@ -0,0 +1,183 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate 2024/ferguson2
|
||||
|
||||
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
||||
# this way allows us to have the user specify a different compiler in an easy way.
|
||||
#
|
||||
[[ -z "$CC" ]] && CC="cc"
|
||||
|
||||
# make sure the program and the alt program have been built
|
||||
#
|
||||
make CC="$CC" everything >/dev/null || exit 1
|
||||
|
||||
# clear the screen
|
||||
#
|
||||
clear
|
||||
|
||||
# try the program
|
||||
#
|
||||
read -r -n 1 -p "Press any key to translate \"test\": "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog test
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decipher the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog.alt $(./prog test)
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to translate \"bear\": "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog bear
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decipher the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog.alt $(./prog bear)
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to translate \"Commanding Officer\": "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog 'Commanding Officer'
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decipher the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog.alt $(./prog 'Commanding Officer')
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to translate cat: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog cat
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decipher the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog.alt $(./prog cat)
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to translate code: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog code
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decipher the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
# SC2046 (warning): Quote this to prevent word splitting
|
||||
# We must disable this warning as we want word splitting!
|
||||
# shellcheck disable=SC2046
|
||||
./prog.alt $(./prog code)
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to encode: SENDING CODE: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog "SENDING CODE"
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to decode above message: " 1>&2
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
for i in KLESH DZEH TSAH CHINDI YEH-HES TSAH JEHA ' ' MOASI A-KHA CHINDI DZEH; do
|
||||
./prog.alt "$i" | tr -d '\n'
|
||||
done
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to encode: CODE RECEIVED: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog "CODE RECEIVED"
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to decode above message: " 1>&2
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
for i in MOASI NE-AHS-JAH LHA-CHA-EH DZEH ' ' GAH DZEH MOASI DZEH TKIN A-KEH-DI-GLINI DZEH LHA-CHA-EH; do
|
||||
./prog.alt "$i" | tr -d '\n'
|
||||
done
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to encode: INTERNATIONAL OBFUSCATED C CODE CONTEST: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog "INTERNATIONAL OBFUSCATED C CODE CONTEST"
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to decode above message: " 1>&2
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
for i in YEH-HES TSAH D-AH DZEH DAH-NES-TSA TSAH WOL-LA-CHEE D-AH YEH-HES A-KHA TSAH WOL-LA-CHEE NASH-DOIE-TSO ' ' A-KHA SHUSH CHUO NO-DA-IH KLESH MOASI WOL-LA-CHEE D-AH DZEH CHINDI ' ' MOASI ' ' MOASI A-KHA CHINDI DZEH ' ' MOASI A-KHA TSAH D-AH DZEH KLESH D-AH; do
|
||||
./prog.alt "$i" | tr -d '\n'
|
||||
done
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to encode the English alphabet: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
for i in {A..Z}; do ./prog "$i" | tr '\n' ' '; done
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to decode the above output: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
for i in {A..Z}; do
|
||||
./prog.alt "$(./prog.alt "$i")" | tr '\n' ' '
|
||||
done
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog.alt +prog.alt.c > foo.c: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./prog.alt +prog.alt.c > foo.c
|
||||
|
||||
read -r -n 1 -p "Press any key to run: make foo: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
make foo
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./foo +foo.c > bar.c: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
./foo +foo.c > bar.c
|
||||
|
||||
read -r -n 1 -p "Press any key to run: diff foo.c bar.c: "
|
||||
echo 1>&2
|
||||
echo 1>&2
|
||||
diff foo.c bar.c
|
||||
echo 1>&2
|
||||
|
||||
echo 'If the above diff shows difference, can you explain there is a difference? :-)'
|
||||
echo 1>&2
|
||||
|
||||
# cleanup
|
||||
#
|
||||
rm -f foo foo.c bar bar.c
|
||||
Reference in new issue
Block a user