Add 2000/schneiderwent/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-19 09:26:52 -08:00
1 parent bcf5abfd04
commit f7ecec003f
3 files changed
+40

No files matched your search

+7
View File
@@ -21,6 +21,13 @@ make
What's the difference?
If you have a long while to spare (and you're bored enough that you could watch
paint dry :-) ) you might also try:
```sh
./try.sh
```
## Judges' remarks:
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
#
# try.sh - demonstrate IOCCC winner 2000/schneiderwent
#
# 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.
if [[ -z "$CC" ]]; then
CC="cc"
fi
make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "This will take a long time to run to completion: " 1>&2
i=0
while [[ "$i" -lt 60 ]]; do
./schneiderwent
./schneiderwent schneiderwent.data
sleep 60
((i++))
done
+5
View File
@@ -2570,6 +2570,11 @@ on it to assign to the `int`s, much like with `1987/lievaart`. The strings are
`char[5]` and the `%` specifier is `%4s` which is enough for the game.
## <a name="2000_schneiderwent"></a>[2000/schneiderwent](/2000/schneiderwent/schneiderwent.c) ([README.md](/2000/schneiderwent/README.md]))
[Cody](#cody) added the [try.sh](/2000/schneiderwent/try.sh) script.
## <a name="2000_thadgavin"></a>[2000/thadgavin](/2000/thadgavin/thadgavin.c) ([README.md](/2000/thadgavin/README.md]))
[Cody](#cody) fixed the code and added an appropriate make rule so that the