From b24c6a1785bb3e9f0230b2d683e0020f58635fe6 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:39:56 -0800 Subject: [PATCH] Add try.sh to 1995/dodsond1 + format/typo checks The try.sh script uses the text file that I added a while back which has the text that the judges recommended one try with the program. --- 1995/dodsond1/README.md | 6 +++--- 1995/dodsond1/try.sh | 9 +++++++++ thanks-for-fixes.md | 6 ++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 1995/dodsond1/try.sh diff --git a/1995/dodsond1/README.md b/1995/dodsond1/README.md index f4b5801ac..14589f24b 100644 --- a/1995/dodsond1/README.md +++ b/1995/dodsond1/README.md @@ -33,7 +33,7 @@ giraffes. ... which can be done like: ```c -./dodsond1 < try.this.txt +./try.sh ``` @@ -47,11 +47,11 @@ The obfuscation is on several levels. Most obviously, the shape of the program. Underneath that, the variable names are in pig Latin, as are the -names of the standard C functions, such as putchar. Even main is +names of the standard C functions, such as `putchar()`. Even main is written as `ainma`. The program construction is also very obfuscated, with all of the -code being inside the ()'s of one of the 6 `orfa` loops. +code being inside the `()`'s of one of the 6 `orfa` loops. ## Copyright and CC BY-SA 4.0 License: diff --git a/1995/dodsond1/try.sh b/1995/dodsond1/try.sh new file mode 100755 index 000000000..dd17ce931 --- /dev/null +++ b/1995/dodsond1/try.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +make all >/dev/null || exit 1 + +echo "$ cat try.this.txt" +cat try.this.txt + +echo "$ ./dodsond1 < try.this.txt" +./dodsond1 < try.this.txt diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 735428f57..4bb5cee4b 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -1859,6 +1859,12 @@ are too fast ... if there is such a thing anyway :-) ). See the README.md for details on this. +## [1995/dodsond1](1995/dodsond1/dodsond1.c) ([README.md](1995/dodsond1/README.md])) + +Cody added the [try.sh](1995/dodsond1/try.sh) script that uses the text file he +provided which is input we suggested one try with the entry. + + ## [1995/garry](1995/garry/garry.c) ([README.md](1995/garry/README.md])) Cody fixed the alt code so that it will compile with modern compilers. The