Files
ioccc/2018/endoh1
Landon Curt Noll 96e0f2b966 move some rules into 1337.mk
A number of rules have been moved from entry `Makefile`s into the
`1337.mk` include file to make it easier for these common rules to be
updated or modified globally (by modifying the `1337.mk` include file).

The entry level `Makefile`s are now similar in form to the
/Makefile.example](https://github.com/ioccc-src/mkiocccentry/blob/master/Makefile.example)
file from the other repo.

The following make rules were moved into the `1337.mk` include file:

- `make indent.c`
- `make install`
- `make diff_orig_prog`
- `make diff_prog_orig`
- `make diff_alt_prog`
- `make diff_prog_alt`

This simplifies the entry level `Makefile`s so that they mostly reflect
the specifics of the particular entry.

Mentioned in FAQ 4.2, that the make diff rules are in the `1337.mk` include file.

Fixed invalid TAB character in `faq.md`.

Removed `make clean` directives that removed `indent.c`.  This file is now
removed via `make indent_clean`, a clean rule that also removes `indent.c`.

Removed `make clobber` directives that removed sandwich,  This file is now
removed via `make indent_clobber`, a clean rule that also removes `sandwich`.

Added `make indent_clean` and `make indent_clobber` rules into the top level
`Makefile` and the year level `YYYY/Makefile`.

Performed `make quick_www` to accomplish the above and to test under macOS.
2024-08-21 23:42:28 -07:00
..
2020-12-30 16:57:03 -08:00
2020-12-30 16:57:03 -08:00
2024-08-21 23:42:28 -07:00
2020-12-30 16:57:03 -08:00
2023-07-06 21:49:38 -07:00
2020-12-30 16:57:03 -08:00

To build:

    make

To use:

    ./prog < textfile > output.gif

Try:

To see the input files and feed them to the program, redirecting to GIF files:

    ./try.sh

Judges' remarks:

To get the best experience, use a GIF viewer that can handle animated GIFs. With macOS you can use Safari using open -a Safari smily.gif.

Some things to consider are that this 2.5KiB gem encodes a 96 character 8x8 font (naively this could already take 6144 bytes) and a GIF encoder. But how does it know which characters are closed?

You should only give this program printable ASCII characters.

Unfortunately this won't run on your PDP8, if you had one, as it needs at least 2MiB of memory to run in.

Author's remarks:

This program generates an animated GIF from a plain text. Run:

    cc -o prog prog.c
    ./prog < invisible.txt > invisible.gif

Open invisible.gif with a GIF viewer that can show animated GIFs and then wait a minute. You will see a hidden message. Can you tell the difference between letters that leave the mark and ones that do not?

Other examples:

    ./prog < golem.txt > golem.gif
    ./prog < smily.txt > smily.gif

The program itself has a hidden message.

    ./prog < prog.c > prog.gif