Files
ioccc/1993/jonth/README.md
T
Cody Boone Ferguson b77347cc35 Change 'To run' to 'To use' in all README.md files
As in:

    sgit -e 's/# To run/# To use/g' '*README.md'

This makes consistent the message for how to use the program. 'How to
use' was chosen because one can run a program just by doing './foo' but
that doesn't imply that's how to use it but the purpose of the section
is how to use it.
2023-10-26 04:05:50 -07:00

1.3 KiB

Most Obfuscated X Program

Jon Thingvold
University of Oslo
Sogn Studentby 8231
N 0858 Oslo
Norway

To build:

make all

NOTE: this entry requires X11/Xlib.h header file and the X11 library to compile. macOS users running Mountain Lion and later will need to download and install XQuartz in order to compile and run this entry.

To use:

./jonth			# must be run on an X11 server

Judges' remarks:

Use h and l to shift objects left or right. Use k to rotate and press SPACE to drop.

This program's output may be even more obfuscated when played
on inverse video. :-)

Author's remarks:

This is jonth (jon's t(h)etris) for the X Window System.

This program is also an example of data abstraction. The X array is
after initialization hidden by the well defined macros t, u and F.

This program is highly portable as it runs on a "Notebook" size SPARC. This program will not work on machines where sizeof(int)!=sizeof(void *).

This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. You are free to share and adapt this file under the terms of this license:

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

For more information, see: https://creativecommons.org/licenses/by-sa/4.0/