490 Commits
Author SHA1 Message Date
Cody Boone Ferguson b6330673cc Restore silencing warnings in macOS
As besides the entries that are not supposed to compile/cannot compile
due to architectural limitations all the entries can compile in macOS
(though some do not work - yet(? I have plans to work on more later)) it
was not necessary to not silence the warnings after all as the entries
that don't work will be easy to identify ('they don't work' :-) ) so I
can just do make CSILENCE= all in the directory of those entries which
solves the problem I had originally thought of.

Some of the Makefiles have retained other changes I had to make
yesterday to get the entries to work with clang in linux but most of
them were either not changed or were made better with the rollback of
the commit that originally silenced warnings.

Now work on silencing warnings for linux can be done.
2023-07-08 05:05:50 -07:00
Cody Boone Ferguson d89305ef3b Mass .gitignore update for .orig.c files
Due to the fact we now have .orig.c files and thus the possibility of
winner.orig or prog.orig being built I have updated all the .gitignore
files so that these files ignored. This was done with the following
shell commands, for reference:

    for i in $(find 19* 200* 201[0123] -mindepth 2 -maxdepth 2 -name .gitignore) ; do echo $(dirname "$i"|sed -e 's,[0-9]\{4\}/,,g').orig >> "$i"; done
    for i in $(find 201[4-9] 2020 -mindepth 2 -maxdepth 2 -name .gitignore) ; do echo prog.orig >> "$i"; done

and the two commands is because it was only in 2014 that the winning
entries were renamed to prog so prog.orig is the correct glob.
2023-07-08 04:39:42 -07:00
Landon Curt Noll 2aa99f0644 revert commit d8425bb767 2023-07-07 05:36:08 -07:00
Landon Curt Noll d8425bb767 silence warnings under macOS for cc, clang and gcc
Used the following script to check for warnings
not silenced via ${CSILENCE}:

```sh
find ???? -mindepth 1 -maxdepth 1 -type d | while read dir; do
(cd "$dir"; echo =-=-= "$dir" =-=-= ; csilence -v 1 clobber all ; echo ; csilence -v 1 clobber alt)
done 2>&1 | less
```
2023-07-07 01:11:22 -07:00
Landon Curt Noll 2ba12ecc3c restore *.orig.c to each entry
Under each yyyy/dir there is a file of the form '*.orig.c'
containing the original source code, or as close as we can
get to the original source code.
2023-07-06 21:49:38 -07:00
Cody Boone Ferguson 30f7d86316 Improve 2020/kurdyukov2 for MacPorts build
The -I/-L options to the compiler/linker have been updated for those who
use MacPorts with the default MacPorts prefix.
2023-07-05 05:12:34 -07:00
Cody Boone Ferguson 7dbb9fc2fe Change 'tri-graphs' to 'trigraphs' - it's one word
The is a file excluded from this commit that has had the change because
there are other changes but the file is incomplete. That file will be
committed when the fixes are complete which will happen at a later date.
2023-06-05 05:52:57 -07:00
Cody Boone Ferguson 5881f728f5 Fix Enigma chocolate cake files wrt twitter
With commit f46e68740f twitter links were
converted to archived copies (due to Elon Musk threatening to delete
accounts that are not active) and the chocolate cake files had a link to
a tweet. However the 2020/ferguson2 chocolate cake files were encrypted
with a key (one of 16 I gave to experiment with the entry itself) which
means that the files were not updated. Now they have been so that when
properly decrypted they will link not to twitter itself but twitter on
the Internet Wayback Machine.

Question: what's the difference between SpaceX rockets and Twitter? Elon
Musk hasn't yet managed to blow up twitter!
2023-05-25 03:12:06 -07:00
Landon Curt Noll f46e68740f Deprecate twitter
We further deprecate the use of twitter.

In cases such as historic guidelines and rules, we add
a note about using Mastodon.

In cases where a tweet URL was used, we replace with
an Internet Archive link because twitter has announced
that accounts that are not used for a period of time
will be deleted.

We add a few missing deprecated_twitter information
to the author.numbers and author.cvs files.

We remove references to twitter handles (after making
sure that both author.numbers and author.cvs has the
deprecated_twitter information).  When the "_README.md_"
files have their header information generated by
a tool, such deprecated_twitter data will not be present.
2023-05-24 16:50:01 -07:00
Cody Boone Ferguson d99053cc44 Add note about typoglycaemia in 2020/kurdyukov3 2023-05-17 05:23:06 -07:00
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 44bdb438b2 Typo and further format fix 2020/burton/README.md 2023-05-05 05:03:48 -07:00
Cody Boone Ferguson 382cc698ec Add mastodon handle to all Yusuke Endoh entries
This was easy with my sgit tool which I didn't think about until shortly
after the previous commit (20edd11936).
2023-04-28 05:25:24 -07:00
Cody Boone Ferguson ed8eb093ec Minor fixes to 2020/ferguson1/README.md & snake.1
Yes well what can I say? I looked at the files by chance and saw a few
things that were not clear and needed to be corrected. Call me a snake
if you must! :-)
2023-04-26 07:50:06 -07:00
Cody Boone Ferguson 421a8ccbe7 Fix html vs md files issue in 2020/ferguson1
The solution is that when referring to html files have in parentheses
text like 'foo.md' on GitHub though with a link.

...at least I believe this should solve the problem. Time might show
otherwise but we'll see.
2023-04-17 06:18:35 -07:00
Cody Boone Ferguson f5da61e033 Dedication fixes in my entries 2023-04-17 05:48:09 -07:00
Cody Boone Ferguson 28328a2078 Fix another problem due to incorrect rendering 2023-04-17 05:38:12 -07:00
Cody Boone Ferguson c08f8f15a0 Attempt to fix alignment issue in 2020/ferguson2
It seems like the problem might have been because before opening a pull
request the old file is viewed and the format was not correct there. Or
it might be I did something wrong. Hopefully this resolves the issue.
2023-04-17 05:36:37 -07:00
Cody Boone Ferguson 8d73642d96 Format and link fixes in 2020/ferguson2
To make this easier to see what it all is I'm doing this in a separate
pull request.

Some of the links were broken and I added some links as well. I tried to
only link to the same thing once (per section) but it's possible I
missed some.

Format fixes in some code blocks and probably other things too.

Clarify and reword some things as well.

And _this_ should be the final one for now unless I see a problem on
GitHub (I'll be checking the rendered output of the markdown files and
making any fixes if necessary).
2023-04-17 05:18:55 -07:00
Cody Boone Ferguson c793bdfc25 Typo fix in 2020/ferguson2/README.md
Extraneous ')' added by accident when adding a link yesterday.

I also, unrelated, clarified in a spot or two that one should use the
markdown files if reading on GitHub. This however is not consistent and
needs to be done throughout all files probably including other entries
(mostly README.md but there are certainly others).
2023-04-17 02:16:34 -07:00
Cody Boone Ferguson 0285db7d0c Slight rewording in 2020/ferguson2/recode.md
^D
2023-04-16 14:23:44 -07:00
Cody Boone Ferguson 2ca6dc4021 Format fixes and other updates in 2020/ferguson2
With this commit I should be able to return to the other entries though
as Landon pointed out I might never finish this and this is a reason it
might not have been as thorough as I could have been (another part is
it's long). Nevertheless the formatting should now be okay along the
lines of what was requested for all the winning entry markdown files.
2023-04-16 13:47:40 -07:00
Cody Boone Ferguson a07eb314bf Chocolate cake!
Updated the chocolate-cake.md file to stress important points (including
by making the ingredients - in the instructions parts - upper case to
make it stand out more). Some of the points are critical.

Added to 2020/ferguson2/.gitignore a file that is used to encrypt the
chocolate-cake.md (from 2020/ferguson1) for the Enigma entry (even
though anyone interested would use the 2020/ferguson1 plaintext
version). This is because it's easier to have than to look up the syntax
each time (of the recode program).
2023-04-16 10:40:53 -07:00
Cody Boone Ferguson 49a6a4074d Format and other fixes in 2020/ferguson1
Fixed formatting in the markdown files. I did not check for typos due to
the fact I wrote so much (which I'm only sorry about in the sense that
it's too much to go through for almost everyone and this might make some
people miss useful/interesting things. If I had 'more "time" ' maybe I
could shorten it but I don't).

Renamed crazy.log to crazy.log.md. Updated Makefile for the DATA
variable.

Corrected file names in some cases.

Fixed formatting in man page.

There is one other change I have in 2020/ferguson1 but it's also needed
in 2020/ferguson2 so I'll do that at the same time.
2023-04-16 10:09:33 -07:00
Cody Boone Ferguson a7e018d5e8 Improve 2020/ferguson1/termcaps.c 2023-04-16 05:05:21 -07:00
Cody Boone Ferguson 16d305bddb Update modified date in 2020/ferguson1/play.sh 2023-04-16 03:51:04 -07:00
Cody Boone Ferguson 858855241d Slight rewording in 2020/ferguson1/cannibalism.log 2023-04-16 03:38:35 -07:00
Cody Boone Ferguson ef140ddb7e Bug fix and improve 2020/ferguson1/play.sh
It did not work if one did not choose to reconfigure colours and the alt
prog was not already compiled.

It now allows you to continue play after you end a game if you so
choose.

Shellcheck fixes.
2023-04-15 10:11:40 -07:00
Cody Boone Ferguson 66a7970881 Update 2020/ferguson1/Makefile
I forgot to change the cannibalism.log to cannibalism.log.md in the DATA
variable.
2023-04-15 09:54:22 -07:00
Cody Boone Ferguson f3144522fe Typo fix in cannibalism.log.md
... and that's all there is to it for now ...

I believe these commits improve the file and this should be all that's
needed unless something else shows otherwise. But as Landon said maybe
I'll never be done. I guess we'll see! :-)
2023-04-15 08:27:46 -07:00
Cody Boone Ferguson 96a5557f48 'Clarify' one thing in cannibalism.log.md
Not formatting but text.
2023-04-15 08:25:03 -07:00
Cody Boone Ferguson ae42b73f92 Another fix to 2020/ferguson1/cannibalism.log.md
I believe that this will be the last change needed.
2023-04-15 08:23:23 -07:00
Cody Boone Ferguson afa5cf298e Attempt to fix overflow text in cannibalism.log.md
In GitHub the code block overflows so I've attempted to fix this by
shortening the text. It might need further adjustments and maybe it
depends on screen width but I'm not sure of that.
2023-04-15 08:21:08 -07:00
Cody Boone Ferguson eaf9f59a0c Rename 2020/ferguson1/cannibalism.log{,.md}
Rename cannibalism.log to cannibalism.log.md as an experiment. I
believe it'll look nicer this way. I also made some changes that should
make it easier to see where each part of the game is (in some cases for
the tail; every case for the head and insect).

Updated gameplay.md to refer to the renamed file and removed the now
irrelevant information about cannibalism.log.

I did not regenerate gameplay.html but I did not remove it either. The
reason I didn't is because there will be a tool that converts markdown
to html files and since this commit won't sync to the IOCCC website it's
not a risk in the meantime. Nevertheless I want the html file in for the
time being. The html file is still referenced in the file too because
it's preferable that it's used when everything goes live (except on
GitHub of course).
2023-04-15 08:12:32 -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 508b760db4 Add INABIAF status to 2020/burton/README.md
It was already in bugs.md but I noted another known feature of the entry
(more than one arg will show strange output).
2023-04-10 09:56:07 -07:00
Cody Boone Ferguson 0defafc6f7 Format fixes in 2020/burton/README.md 2023-04-08 09:03:53 -07:00
Cody Boone Ferguson 2ed80eb224 Undo no arg check in 2020/burton
As part of INABIAF redefinition the check for arg number is removed.
Instead the README.md and Makefile warn about it.
2023-04-07 10:33:41 -07:00
Cody Boone Ferguson 524cf58d5f Partial fix (format etc.) in 2020/endoh1/README.md
I've not gone through the file entirely but I have some significant
fixes to make and I want to get my working repo clean so I can do these
fixes. I'll go through this file in full later.
2023-04-07 04:20:37 -07:00
Cody Boone Ferguson 49cd144e9f Fix 2020/kurdyukov4/Makefile for DATA
Don't delete the text files.

Make it so it actually doesn't use curl but just references the files
added.
2023-04-06 12:52:15 -07:00
Cody Boone Ferguson c14cd1fec3 Update 2004/kurdyukov4/.gitignore
Add test.txt which is referred to in the README.md file.
2023-04-06 12:47:24 -07:00
Cody Boone Ferguson 771ed740a6 Fixes / updates to 2020/kurdyukov4
Instead of relying on curl to obtain the text files just add them to the
repo.

Typo fixes.

Formatting fixes.

Added what on Middle-earth lámatyávë is to the README.md so that people
may enjoy the award title a bit better. From Morgoth's Ring, volume X of
the wonderful set History of Middle-earth (HoMe), one of many things
that were edited and published by the late Christopher Tolkien, heir and
literary executor of the great Tolkien.
2023-04-06 12:44: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 0f89168936 Fix zero arg segfault in 2020/burton
I did not fix the strange output when more than one arg is specified nor
do I think I should.

I did not update Dave's comment that it will segfault on zero args nor
do I think I should (instead I updated the To run section like I've done
with the many others I've fixed).
2023-03-31 06:56:17 -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