Commit Graph
76 Commits
Author SHA1 Message Date
Landon Curt Noll 5927927e51 Add .id to all winning entries 2023-05-13 11:45:33 +10:00
Landon Curt Noll c69445d067 Add .top and .year files
This will be used by tools that will build the web site
and tools that form JSON files (such as `.winner.json').
2023-05-12 20:10:38 +10:00
Cody Boone Ferguson 66231b2150 Remove 'America' (A) from 'USA' :-)
This to make the country code consistent with mkiocccentry (and I guess
international standard country codes).

This affects many README.md files and (for one line) winners.csv.
2023-04-22 04:21:38 -07:00
Cody Boone Ferguson 55575a126e Fix Lennart Augustsson URL, remove address
This will likely be the first of a series of commits where URLs are
checked (until I get tired of doing this of course) and more importantly
addresses are removed as these seem unneeded now and the odds are they
are no longer valid.
2023-04-22 03:51:10 -07:00
Cody Boone Ferguson 496a0c4a00 Clarify segfault fix in 1996/westley/README.md 2023-04-20 08:41:12 -07:00
Cody Boone Ferguson 738393c695 Fix segfault in 1996/august (but clang is broken)
The program segfaulted which prevented it from being used. This was due
to addressing far out of bounds of the m array. This was discovered with
a debugger. But a strange problem is that one cannot use -ggdb3 - -g
works however. This is because it hangs.

Now this entry will not work (at least a part or one of the invocations)
with clang and that means that it won't work with macOS. Is it because
of some debug symbols that are being generated or something else? I
really do not know but the judges noted back then that some compilers
compile it into an infinite loop (though the command they suggested did
not have the problem - a later one did). I updated the bugs.md with
details under the status of it does not work with some compilers.

I also added the try.sh script as a convenience as there are a lot of
commands to do.
2023-04-19 06:55:10 -07:00
Cody Boone Ferguson 4e2492f734 Format fixes in 1996/august
I am aware, however, of at least one possible bug. I've not addressed
this or put it in bugs.md. I will first look at it a bit more as at
first in linux I got a segfault but then I had the same problem under
macOS - a freeze. I want to see if I can duplicate the crash again
before I write about any bugs.
2023-04-19 05:20:10 -07:00
Cody Boone Ferguson bedaa23460 Format fixes in 1996/huffman/README.md 2023-04-19 05:10:35 -07:00
Cody Boone Ferguson 65db8ce38d Update 1996/gandalf
The URL was dead or to be more correct it required a login and password.
The Internet Wayback Machine was of no help.

Format fixes.

Removed URL from winners.html and winners.csv; updated bugs.md asking
for a current URL.

At the same time I fixed some entries in winners.csv which had too many
fields including some with a ',,'. I'm certain more are there but I
didn't want to go through the entire file now. It might be easier (since
it's temporary) to just wait for the generation of the json files and
then update those files since the CSV file is temporary anyway. The
winners.html file should probably be updated even though I believe that
will also be generated by a tool.

I'm sure there are other dead links too that need to be found and I will
do that in time.
2023-04-19 05:03:50 -07:00
Cody Boone Ferguson 7dc35c0782 Add alt code to 1996/eldby - moves too fast now
For those who have any sensitivity to things zooming by (like me) or who
also just thinks it goes by too fast with modern systems to truly enjoy
(like me) there is now the alt version. This should help make it more
like in the past but without tampering with the original code.

See the README.md for how to reconfigure the default sleep time.

Format fixes in README.md as well.
2023-04-18 12:33:30 -07:00
Cody Boone Ferguson de1100d7db Fix John Dalbec URL
In the case of 1996/dalbec/README.md the file was format fixed as well.
This has not been done yet with 2004/jdalbec/README.md but will in time.

The winners.html and tmp/winners.csv files have been updated as well.
2023-04-18 11:33:33 -07:00
Cody Boone Ferguson b6faa73902 Format fix 1996/rcm/README.md
I feel positively awful but I also felt I had to add a link to the emacs
tarball that was referenced in the README.md file. No matter how much it
goes against my DNA it felt like it should be at least linked to since
it was part of the author's testing procedure. Call me crazy but I just
prefer not having CTS, I already have a good OS and I'd like a good
editor too. :-)
2023-04-18 11:13:05 -07:00
Cody Boone Ferguson c9ce688238 Address the fixed / unfixed 1996/westley situation
When I first fixed this it was because the scripts segfaulted and at
least one showed an environmental variable both of which caused some
usability issues. But I started to wonder if maybe the fixed code should
be the alt version. To do this I made a change to the scripts so one can
tell the script which version to use. I was having a problem in figuring
out how to explain it (owing to the fact I've been awake once again
since stupid o'clock and without good sleep) but before I answered that
I decided to test out the new feature to the script and the output made
me decide to at least for now (discussion can be had) keep the fix the
westley.c and the unfixed original code the alt code. This particularly
shows up in the third script where the output is hard to tell what is
part of the program and what is not. The unfixed version looks like:

    $ WESTLEY=./westley.alt ./clock3
    TERM=xterm-256color
    ./clock3: line 12: 15498 Segmentation fault: 11  ${WESTLEY} "123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_\`abcdefghijkl" "/\$%&'()*+,-./\$%&'()*+,-." " ||" "
    ..3..6..9..12 Hours

     ----.----10---.----20---.----30---.----40---.----50---.---- Minutes
    "

which has a " by itself on the last line that should not be there. Then
there's the other problematic output. It should just look like:

    ..3..6..9..12 Hours

     ----.----10---.----20---.----30---.----40---.----50---.---- Minutes
2023-04-18 10:20:23 -07:00
Cody Boone Ferguson fa87b511bf URL and format fix 1996/schweikh3/README.md 2023-04-18 09:29:01 -07:00
Cody Boone Ferguson 2f04c16b00 URL and format fix 1996/schweikh2/README.md 2023-04-18 09:28:04 -07:00
Cody Boone Ferguson 231ab04074 URL / format fix 1996/schweikh1/README.md 2023-04-18 09:27:01 -07:00
Cody Boone Ferguson c88811c1bf Update and fixes in 1996/jonth
I note that this entry does not work in macOS even with XQuartz. The
invocation recommended caused a crash but I came up with an invocation
that made it go further along - but still also crash. I wrote in bugs.md
details about it as well as giving a workaround in macOS (involves
another system with X11 forwarding - no not xhost). There is some C
pre-processed code in bugs.md in case this helps.

The URL of the author is dead and the Internet Wayback Machine was of no
help so it was removed from winners.csv and winners.html as well. It was
added as a missing link in bugs.md. It was not in the earlier entry from
1993 (they won twice) so I did not put it there.

Format fixes in README.md.
2023-04-18 05:08:22 -07:00
Cody Boone Ferguson 5b25b77c9b Add colon to 'To run' lines
Or else add an ostomy :-).

Some README.md files have severe ulcerative colitis and will need a
colectomies but others are missing colons. These will be discovered and
fixed in time. In the meantime I've restored some functionality for
these poor README.md files by giving them an ostomy.
2023-04-14 06:37:31 -07:00
Cody Boone Ferguson 02c80e7fc1 Check rest of formatting in 1996/eldby 2023-04-14 06:32:24 -07:00
Cody Boone Ferguson 5ada26dc45 Format fix 1996/eldby/README.md 2023-04-14 06:30:00 -07:00
Cody Boone Ferguson 9e323d8392 Remove colon at end of award in README.md files
As in

    sgit -e '1s/:$//g' '*README.md'
2023-04-11 08:43:41 -07:00
Cody Boone Ferguson 4bf3f302cb 'comments' -> 'remarks' in all README.md files
As in

    sgit -e 's/\([Aa]uthor.*\)comments/\1remarks/g' -e 's/\([Jj]udge.*\)comments/\1remarks/g' '*README.md'
2023-04-10 11:01:39 -07:00
Cody Boone Ferguson 2b0864e4df Reword thank you in 1996/westley 2023-04-07 11:15:33 -07:00
Cody Boone Ferguson e09f677b37 Mass typo fix (all README.md and Makefiles)
As in

    sgit -e 's/the terms this license/the terms of this license/g' '*/Makefile' '*/README.md'
2023-04-02 09:27:13 -07:00
Cody Boone Ferguson e805f41d34 Mass fixes to headers in README.md files
There were many many README.md files with the wrong heading level for
different sections. These have been changed.

To help go through the changes it should be noted I used sgit and also
here is what is changed:

The 'Try', 'To build' and 'To run' lines have two '#'s. Some had one and
others had three.

An exception is that in 1984/anonymous/README.md for the alternative
code that had three '#'s. This is not consistent yet and it might be
that only two are desired. But for now that one at least has three.
2023-03-31 06:43:59 -07:00
Landon Curt Noll 350da723cc improve architecture and Optimization comments in Makefiles 2023-03-26 22:13:13 -07:00
Landon Curt Noll 1ce40b273d fix alt rules in Makefiles
For Makefiles that have alt related rules, moved
the related rules under the alt rule section.

In some cases where there is no alt code,
removed alt rules and/or targets.
2023-03-26 21:48:48 -07:00
Landon Curt Noll 1c35dc3b47 make everything true :-)
Add @${TRUE} as an action for the everything rule in Makefiles.
2023-03-26 20:47:04 -07:00
Landon Curt Noll e42d7484cd trim comments and update 133t hacker rulz in Makefiles 2023-03-26 20:24:16 -07:00
Landon Curt Noll 1b1dd2f2e4 put all README.md files under CC BY-SA 4.0 License
This will make is easier for others to share README.md
files while requiring them to attribute the file
when using it.
2023-03-26 02:58:27 -07:00
Landon Curt Noll ea1806abdb change Makefiles to look under X11_INCDIR and X11_INCDIR/X11 2023-03-26 02:22:49 -07:00
Landon Curt Noll 5fc2d72dd1 change use of ${HOMEBREW_PREFIX} with ${SDL2_CONFIG} 2023-03-26 02:19:18 -07:00
Landon Curt Noll 8cd2aa85c1 clean up and improve end of Makefile rules 2023-03-26 02:02:31 -07:00
Landon Curt Noll d04e6d8f03 remove X11_LIBDIR and X11_INCDIR setting from Makefiles
The X11_LIBDIR and X11_INCDIR values are now set in the
top level `var.mk` file.
2023-03-26 00:50:47 -07:00
Landon Curt Noll bbd18a20df improve Makefile headers
Simply the Makefile header.

Refer to the //www.ioccc.org/bugs.md URL (that will eventually exist).

Now using CC BY-SA 4.0 License to how you may share and adapt the
Makefile.
2023-03-25 23:51:14 -07:00
Landon Curt Noll c522203115 restore DATA values in Makefile for 1996/westley
Restore to prevent make clobber from removing files.
2023-03-21 15:20:02 -07:00
Landon Curt Noll f9748a1b15 improve README.md and Makefile for 1996/westley
Add "Alternate code" section to README.md.

Improve CSILENCE in Makefile.
2023-03-21 15:16:32 -07:00
Landon Curt Noll 1be6766fb4 fix targets of 1996/westley 2023-03-21 14:59:39 -07:00
Cody Boone Ferguson 8870040156 1996 fixes and updates
Update the README.md files - at least with those not in a previous
commit. The updates mostly include formatting (make them markdown) but
probably also typos here and there. More probably has to be done with
these files.

The 1996/august/.gitignore was updated as well with a file that is
generated by one of the suggested commands.
2023-03-20 09:01:46 -07:00
Cody Boone Ferguson 2d6d05e053 Minor fixes to 1996/schweikh1
The author noted in the Makefile that for Solaris the compiler flag
-I/usr/include should be included so I have added that.

As well I updated the README.md - formatting fixes (possibly typos as
well but no longer sure).
2023-03-20 08:58:13 -07:00
Cody Boone Ferguson 4614d2a4bb Fix Westley's entries (dead link, .gitignore)
The main link was dead but looking at the Internet Wayback Machine I
found that he changed domains and it's still valid. One entry had a
different URL but with a quick check I could not determine that it had
anything to do with him so I changed it to his own domain (which I
verified is his).

The 2001/westley/.gitignore was also updated as it has other source
files that are generated by the commands in the try section.
2023-03-20 08:52:19 -07:00
Cody Boone Ferguson cf2ec74b17 Fix 1996/westley
It always segfaulted (though with the correct input it still showed the
right results) and when argc == 1 it showed an environmental variable.

The body of the for loop can now be empty (or so it appears). I put the
original in westley.alt.c because it has some interesting techniques in
which he wrote about (which I preserved in the README.md file). I also
put in the original code because I'm not entirely sure if the for loop
really can be empty in all cases. Certainly it can be in the scripts
provided but I don't know if there is a valid invocation that would need
it (but in any case it would always segfault with that loop body).

Updated 1996/westley/.gitignore (added westley.alt) and the Makefile so
that make alt will build westley.alt.

Formatting fixes in README.md.
2023-03-20 08:42:46 -07:00
Cody Boone Ferguson 674a05e15e Further fix 1996/dalbec
I made the recommended change by the author so that each number is on a
line by itself rather than one long line. I changed the try section to
stop at the output that was the output noted by the judges. This was
possible with the change of making it a newline rather than a space
after each number.

I had originally proposed the change in commit
9b6b5a0376 but I did not implement it
because the output of the command versus what the try section included
was misleading (maybe that was correct :-) ) and when looking at Yusuke
Endoh's output I missed that it continued after the number (he had '...'
but I missed it in the long line of output). I linked to his analysis as
well. Thank you Yusuke for confirming it is correct output!
2023-03-20 05:47:21 -07:00
Cody Boone Ferguson 2ce08b66b4 More updates to bugs.md + related files
Some entries were added to the bugs.md file.

As well some README.md files were updated wrt the bugs some of which
might have been better in an earlier commit.
2023-03-19 08:51:06 -07:00
Landon Curt Noll 94ece1f48d Merge pull request #88 from xexyl/readmes
README.md and Makefile files from various years
2023-03-18 23:07:17 -07:00
Landon Curt Noll 6b325f6eaf Merge pull request #81 from xexyl/typos
Fix typos, formatting and thank yous (add links)
2023-03-18 22:59:31 -07:00
Landon Curt Noll ccc31f5ba2 improve fix of 1996/dalbec C code and Makefile 2023-03-18 21:50:38 -07:00
Landon Curt Noll 9b6b5a0376 fix on macOS, compile of 1996/dalbec 2023-03-18 21:47:12 -07:00
Cody Boone Ferguson c91b3c5565 README.md and Makefile files from various years
These are mostly just formatting fixes but there might be some typos
here and there.

These years have not been checked thoroughly but I made fixes and want
them in for when I do work on them.

As far as the Makefiles go: notes were added that correspond to the
notes in the README.md files which is why I have put them in the same
commit.
2023-03-18 11:31:15 -07:00
Cody Boone Ferguson fa682003eb Fix typos, formatting and thank yous (add links)
In some files changed the formatting was fixed to be a proper markdown
file.

There were some typos including that some README.md files that linked to
/winners.html#Cody_Boone_Ferguson actually linked to the non-existent
file /years which obviously would not work.

I also added links to the rest of the places I have fixed entries (but
see below) and I did the same for Yusuke Endoh's fixes.

As well apparently one entry I thought he fixed to compile under modern
systems does not seem to so that entry will have to be revisited another
time. That entry was 1993/jonth.

Those are the main changes here if not all of them.
2023-03-18 05:16:31 -07:00