356 Commits
Author SHA1 Message Date
Cody Boone Ferguson 0903d9f3b9 Fix and improve 2014/sinon scripts
The try script now runs the demo mode if perl is installed. It also now
prompts before running each script (the below noted ones) so that one
can control the pace of the output a bit more.

The glock.sh and hecate.sh scripts could only be run once successfully
because the output of run.c overwrites it (with non code). First one has
to do cp -f prog.c run.c which the scripts now do. This was not a
problem in the try script because I added that step explicitly (and is
now not needed or there).
2024-01-28 12:42:07 -08:00
Cody Boone Ferguson 0120eac02b Add 2013/hou/try.sh 2024-01-27 11:35:00 -08:00
Cody Boone Ferguson d4783f02e7 Add 2013/morgan1/try.sh 2024-01-27 11:16:09 -08:00
Cody Boone Ferguson d8fa53cc29 Improvements to build and script of 2013/endoh4
The Makefile was modified in such a way that allows one to easily
redefine the size (in the code the S macro). For instance:

    make clobber SIZE=50,50 all

The try.sh was renamed to endoh4.sh as it's more of a wrapper to the
program rather than things to try. Also it now lets one specify more
than one file to feed to the program (in sequence).

The bugs.md was updated - added INABIAF. If the file format is invalid
it will very likely crash.
2024-01-27 10:52:18 -08:00
Cody Boone Ferguson 6f20a57493 Add 2013/endoh3/try.sh
The script checks for SoX, padsp and otherwise ruby. It allows one to
pass in args: each one is first checked to be a readable file and if
it is it'll be processed as a file; otherwise it'll be processed as a
string. If no arg is specified it runs the program on twinkle.abc and
the strings ABC and CDEFGABc (the latter suggested by the author).

If none of the three tools noted above are installed it tells the user
to install one of them first. I was not able to test the padsp(1) one
but the invocation matches the author's remarks. /dev/dsp seems to not
be installed in modern linux systems so it would be useful to have
padsp(1) if not SoX (which is preferable in general for entries that
play sound). The ruby script wavify.rb provided by the author is the
last resort which turns the output to a WAV file.
2024-01-27 10:29:47 -08:00
Cody Boone Ferguson 3319013864 Rename 2013/runme to cable3.sh
This is to be consistent with other entries that have wrapper scripts
for the entry which are named winner.sh.
2024-01-26 11:22:46 -08:00
Cody Boone Ferguson 479601899b Bug fix 2012/vik/try.sh
The additional commands I added cannot come first because the program
(as the bugs.md states and now more clearly) will likely crash (and does
in all the systems I tested) if the file does not exist. This did not
show itself the first time because the files already existed but running
make clobber before the script would remove the image files and thus a
crash (or actually two) would occur the first time the script was run
(second time it would be fine as the files it uses then exist).
2024-01-26 11:09:51 -08:00
Cody Boone Ferguson 86ee07db36 Improve 2012/omoikane/try scripts 2024-01-26 10:42:14 -08:00
Cody Boone Ferguson 69ee0b8de6 Improve scripts (and add one) of 2012/kang
The try.alt.sh uses the alt code. This helps further show how a single
letter can change so much and thus one can really appreciate the
subtlety of the entry even more. The other scripts were improved.
2024-01-26 09:47:01 -08:00
Cody Boone Ferguson e7092d77f0 Improve 2012/hamano/try.sh + add helper make rules
The Makefile rules added:

    hint.pdf
    hint

    hello.pdf
    hello

The hint rules generate the hint.pdf (which is the README.md file
obfuscated in a pdf) by feeding the program README.md and then it
compiles hint.pdf as C code. Running it will print the README.md file!

The hello rules generate hello.pdf which is (inside the pdf) an
obfuscated 'Hello World!' program. This is done by a simple echo piped o
the program which redirects it to hello.pdf. Then hello.pdf will be
compiled as C code which when run (as ./hello2) will print 'Hello
World!'.

The script now uses these rules to do what was once done manually. These
rules are .PHONY rules as otherwise they might not always run.

The clobber rule now removes these files.
2024-01-26 09:14:52 -08:00
Cody Boone Ferguson b8713331b2 Improve 2012/grothe/try.sh + other minor fixes
The try section in the README.md file did not refer to the script.

The URL in the cookie recipe file was updated to refer to the domain
that the old one redirects to just in case the old one ever expires or
no longer redirects to the more recent domain. The thanks file notes
this for reference as an aside for context and historical purposes,
noting both URLs.
2024-01-25 10:17:49 -08:00
Cody Boone Ferguson ad703d3188 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.
2024-01-25 09:30:33 -08:00
Cody Boone Ferguson c4aa389568 Add 2011/vik/try.sh
The script will check that mplayer(1) is installed. If it is it will
pipe vik to mplayer. In that case it will still use the raw2wav program
just in case something goes wrong (or for some reason mplayer is not
what is expected). If mplayer cannot be found or is not a regular
executable file then it will just use raw2wav. The raw2wav function in
the script tells you the name of the converted file. In the case that
mplayer cannot be found the script also suggests that you play the WAV
files with a program that can play WAV files.
2024-01-24 09:10:43 -08:00
Cody Boone Ferguson 48e7331f57 Add 2011/zucker/try.sh 2024-01-24 08:46:25 -08:00
Cody Boone Ferguson 3b0a3b12a0 Add 2011/richards try scripts
The bugs.md refers to the alt try script for testing any fix with the
Apple silicon chip. If someone gets it to work the entry could be
removed from the bugs.md file and the README.md file updated to refer to
the alternate code. As the alternate code does not work (though it has a
different type of crash) the alt build/try is not mentioned in the
README.md file. It is not clear if it's helpful or not to have it in the
README.md at this point as the important part is in bugs.md.
2024-01-24 08:32:46 -08:00
Cody Boone Ferguson 8b28b53138 Improve/fix 2011/goren/try.sh 2024-01-24 08:01:32 -08:00
Cody Boone Ferguson a046311811 Add 1994/westley alt code (for easier use)
As 1994/westley requires (for good display) 80 columns, 8 character tabs
and wraparound it makes it harder to run the entry to enjoy it with
modern systems. Also because it generates messages through error
messages (of the compiler line) different compilers will show it
differently and it can end up being harder to follow. The alt code uses
the same logic but instead of using #includes (of files that don't
exist) it uses printf(3). Everything else is the same.

The try.alt.sh is just like the try.sh but for the alt code.

Since the alt code is ideal for modern systems the original code is
suggested second. This can be changed of course.
2024-01-23 10:59:09 -08:00
Cody Boone Ferguson 479f347a14 Add 2006/borsanyi/try.sh
The script runs in a loop until the user answers anything but 'y' or 'Y'
when asked if they wish to make another one. It does NOT check the valid
range of characters or the length. Instead it suggests one try and see
what happens if they do not follow the rules.

Updated .gitignore.
2024-01-22 10:07:56 -08:00
Cody Boone Ferguson 95ca0ca008 Improve 2006/sykes1/try.sh 2024-01-22 09:53:58 -08:00
Cody Boone Ferguson ceb9bf768a Add 2006/stewart/try.sh
It will run the program on a few files but before it runs it on the
remaining files (as there are quite a lot) it will ask you if you wish
to do so. It only asks once. If convert is found it will run convert on
the xbm images to convert to png. If it's not installed it will only
warn the user once so as to not spam them. If convert fails (say because
the convert is not convert from ImageMagick) it will warn once at the
end of the script. In any event if any files were converted it will list
the png files that exist at the end of the script. Otherwise it'll list
the xbm files. It does not first check if any of those file types exist
as it is presumed that at least a few will exist. If none do it is
likely an error in the program or a corrupted data file.
2024-01-22 09:40:16 -08:00
Cody Boone Ferguson 1cd8c28280 Add 2006/monge/try scripts
The alt script will reconfigure the width, height and iterations for the
second invocation.

Note that in some platforms this entry will not work (this is
documented in the remarks). That is one of the reasons there is only one
expression tested as one of the platforms it will not work with is arm64
which is what I primarily use.
2024-01-22 09:01:34 -08:00
Cody Boone Ferguson e500f94445 Add 2006/grothe/try.sh
After each command it prompts if you wish to resume as some people
(including myself) might find that only one file is enough.
2024-01-22 08:42:12 -08:00
Cody Boone Ferguson c7620f2b96 Add 2005/persano/try.sh 2024-01-21 11:24:51 -08:00
Cody Boone Ferguson f72856c519 Improve scripts for 2005/giljade
Prompt to run test suite after the main feature is done and improve the
prompting. The test suite script gives a warning that it may take a bit
of time to run.
2024-01-21 09:48:36 -08:00
Cody Boone Ferguson 4f089535b6 Add 2005/boutines/try.sh 2024-01-21 09:30:53 -08:00
Cody Boone Ferguson 3fdcf5cb2c Improve 2005/aidan try scripts 2024-01-21 09:09:48 -08:00
Cody Boone Ferguson 379e585e0f Add 2004/anonymous/try.sh 2024-01-20 11:13:52 -08:00
Cody Boone Ferguson b622a68af8 Improve 2004/schnitzi/try.sh
It also now checks that vi is installed (for the unlikely case it's not
installed).
2024-01-20 10:47:22 -08:00
Cody Boone Ferguson 195759bf03 Add 2004/omoikane/try.sh 2024-01-20 10:42:28 -08:00
Cody Boone Ferguson 4bab6df670 Add 2004/newbern/try.sh
One of the features the author noted is also in the script. It was
documented by Yusuke but I chose to use the letters IOCCC instead (it
seemed more fitting). This is noted in the thanks file.
2024-01-20 10:23:30 -08:00
Cody Boone Ferguson 6c2bf8cb5a Add 2004/hoyle/try.sh
This involved an update to .gitignore.
2024-01-20 09:46:47 -08:00
Cody Boone Ferguson 73512d2e81 Fix 2004/hibachi/src/localhost/index.html
Many links no longer worked, had changed or are https enabled now. In at
least two cases the Internet Wayback Machine was required but most were
just changed to https. The link to cygwin had changed entirely. The link
to lynx(1) had changed too.

Typo fixes in src/localhost/test0.sh.

Minor updates to README.md.
2024-01-20 09:20:55 -08:00
Cody Boone Ferguson 789397e415 Fix typo (bad filename) in 2004/arachnid
I had renamed the arachnid.info to arachnid.txt as it's not really an
informative file but I forgot to update the command in the README.md
file. I was tempted to rename it to arachnid.maz as it's a maze file but
I kept it as a text file so that (some?) browsers know what to do with
it (though I'm not sure how strictly necessary that is it doesn't hurt
to have it as .txt either).
2024-01-20 06:30:05 -08:00
Cody Boone Ferguson 9c43c0c90a Add 1998/bas1/bas1.sh
This simplifies the running of the program as the command lines
(different options) can be long and more complicated to type, especially
the last one. The script is menu driven. Initially I made it a loop so
one can run the command once to try multiple modes but this seems
unnecessary and created some display problems (depending on how
invocations were done).
2024-01-20 06:21:54 -08:00
Cody Boone Ferguson 5e25056532 Add 2000/natori/try.alt.sh + improve try.sh
The try.alt.sh script is slightly different from try.sh in that the
order is reversed.

The try.sh script now at the end always starts out in a sequence of
northern hemisphere then southern hemisphere so that one can guarantee
to get that form. The try.alt.sh does the same but starts out with the
southern hemisphere first.
2024-01-20 05:56:01 -08:00
Cody Boone Ferguson 3948259fc9 Fix typos in thanks file
There was an erroneous '/' in some places (particularly with
'[a-z](\/'). This likely happened when changing the paths to be absolute
paths.
2024-01-19 11:32:37 -08:00
Cody Boone Ferguson 276ffcbe41 Update thanks file for 2001/ollinger 2024-01-19 10:19:01 -08:00
Cody Boone Ferguson c5202552b5 Add 2001/herrmann1/try.sh 2024-01-19 09:56:28 -08:00
Cody Boone Ferguson f7ecec003f Add 2000/schneiderwent/try.sh 2024-01-19 09:26:52 -08:00
Cody Boone Ferguson f9f4e27535 Add 1998/schweikh2/try.sh 2024-01-19 08:28:48 -08:00
Cody Boone Ferguson 99e79b1e13 Add 1998/df/try.sh
This script runs repeatedly until (when prompted) one hits 'q' (or 'Q')
or else sends ctrl-c/intr. I also added a question to the extra credit
questions: are there any misspelt words and if there are what are they?
I also added that there's a way to cheat very easily but I did not say
how to do it. It should be pretty obvious how to do it to anyone who
tries the program once or if not once a few times.
2024-01-19 06:57:28 -08:00
Cody Boone Ferguson ed47e4ab55 Add 1998/chaos/try.sh
The script runs the program on each data file, explaining how to use the
program, things to try and how to quit the program and how to terminate
the script prematurely.
2024-01-19 06:42:33 -08:00
Cody Boone Ferguson 31793b035c Improve 1996/westley/try scripts 2024-01-19 06:00:43 -08:00
Cody Boone Ferguson 6344fd5584 Update 1996/schweikh3/Makefile for SunOS
Rather than make anyone manually update the Makefile (the command in the
README.md file suggested that one would use Makefile variables) or type
a more complicated command the Makefile now tries to compile the entry
as suggested if compilation fails. Thus one can type 'make all' and if
compilation fails it will try the SunOS way.
2024-01-19 05:53:11 -08:00
Cody Boone Ferguson e88b19a307 Add 1996/schweikh1/try.sh 2024-01-19 05:38:26 -08:00
Cody Boone Ferguson 9bcfcea20c Add 1996/rcm/try.sh
The 'to use' section was fixed also: it's not just specific gzipped
files but any so it now says 'file.gz' and adds that file.gz is any
gzipped file.

The try.sh script now has the command that used to be in to use and also
what was in the try section. It also copies rcm.c to rcm.cp.c and gzips
that file and then runs the program on that to show the source. All
paged through less(1), of course. Finally it does what the judges have
in their comments (which have been updated to say that the command is in
the try.sh script). The judges' command is naturally a shorter way to do
the one added in the try.sh script but it uses tee(1) to write both to
another file (piped to less(1)) so that it can compare the two.
Obviously the files will be the same but it shows how it works in
multiple ways.
2024-01-19 05:21:00 -08:00
Cody Boone Ferguson 140aadc5ad Reword thanks for 1996/august 2024-01-19 04:54:46 -08:00
Cody Boone Ferguson 01d50b7ff4 Add 1996/dalbec/try.sh 2024-01-18 11:28:07 -08:00
Cody Boone Ferguson 5402b8f1da Improve 1996/august/try.sh 2024-01-18 11:22:22 -08:00
Cody Boone Ferguson 8cfd3f67e5 Add 1995/vanschnitz/try.sh 2024-01-18 11:09:51 -08:00