IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2020/endoh3 - Most head-turning

ASCII clock

Author:

To build:

    make

An alternate version of this program exists. See Alternate code below.

To use:

    ./prog

Try:

    ./run_clock
    # And watch closely for 15-20 seconds

Alternate code:

An alternate version of this entry, prog.alt.c, is provided. This alternate code uses Unicode letters.

Alternate build:

    make alt

Alternate use:

Use prog.alt as you would prog above.

Alternate try:

    ./run_clock.alt
    # And watch closely for 15-20 seconds

Judges’ remarks:

You may be tempted to use a mirror. Resist the temptation! Try figuring out how the clock hands are drawn. Can you change the program to make it draw a familiar (non-mirrored) clock face? Can you add the second hand?

When using the run_clock.sh shell script, your perception of time might depend on what time it is.

Author’s remarks:

Prepare a mirror!

    make clock

Note: You need to recompile it each run.

Inventory for 2020/endoh3

Primary files

Secondary files


Jump to: top