The International Obfuscated C Code Contest
A 27th IOCCC Winner
The code for this entry can be found in prog.c
# And watch closely for 15-20 seconds
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 shell script, your perception of time might depend on what time it is.
Prepare a mirror!
$ make clock
Note: You need to recompile it each run.
prog.alt.c is an alternate version that uses Unicode letters, which was suggested by the judges.
© Copyright 1984-2020,
Leo Broukhis, Simon Cooper, Landon Curt Noll
- All rights reserved