Improve and add 2012/endoh1 try scripts

The new try.sh and try.bw.sh scripts run the program on one file (passed
to the script) in colour and without colour respectively. One file
because one has to terminate the program.

The new try.alt.bw.sh is like try.alt.sh but uses the black and white
(original submitted entry) version.

The scripts for the alt code allow one to set the different variables
that can be redefined. The use is the same variable names as in the
Makefile. For instance:

   TIMER=5 SLEEP=5000 GRAVITY=I VISCOSITY=4 PRESSURE=1 ./try.alt.sh
   TIMER=5 SLEEP=5000 GRAVITY=I VISCOSITY=4 PRESSURE=1 ./try.bw.alt.sh

for the gravity 'I' and:

   TIMER=5 SLEEP=5000 GRAVITY=N VISCOSITY=4 PRESSURE=1 ./try.alt.sh
   TIMER=5 SLEEP=5000 GRAVITY=N VISCOSITY=4 PRESSURE=1 ./try.bw.alt.sh

where 'N' is some number. Obviously the other values can have different
values than given above. Some of these values are protected against in
code (to an extent - if the user wants to set them to strings that's on
them) but not all are and the scripts do not try and check for the user
either.

The endoh1.alt.c file was changed in that one can now define SLEEP (S in
the code) to 0 like the original, should they want to see the original
but with other values specified. That will make it flash much more
quickly which can be a problem of course but that's up to each user.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-25 09:30:33 -08:00
1 parent d70996ef22
commit ad703d3188
9 files changed
+269 -73

No files matched your search

+10 -2
View File
@@ -3727,8 +3727,16 @@ with the default, and which is run on the source file and each of the text files
supplied by the author. This code has an alarm set at 10 seconds so that one
need not hit ctrl-c/intr in between .. say to make it more fluid :-)
The [endoh1.alt2.c](/2012/endoh1/endoh1.alt.c) was provided by Yusuke as a
de-obfuscated version.
Cody also added the [try.alt.bw.sh](/2012/endoh1/try.alt.bw.sh) which is the
same as the `try.alt.sh` except it does not use the coloured version.
Finally Cody added the [try.sh](/2012/endoh1/try.sh) and
[try.bw.sh](/2012/endoh1/try.bw.sh) which correspond to the coloured version
[endoh1_color.c](/2012/endoh1/endoh1_color.c) and the original submitted
version without colour, [endoh1.c](/2012/endoh1/endoh1.c).
The [endoh1.alt2.c](/2012/endoh1/endoh1.alt2.c) was provided by the author,
[Yusuke](#yusuke), at the time of the contest as a de-obfuscated version.
## <a name="2012_endoh2"></a>[2012/endoh2](/2012/endoh2/endoh2.c) ([README.md](/2012/endoh2/README.md))