snake.icn: Program to play the snake game

March 26, 2002; Richard L. Goerwitz
Requires: UNIX (MS-DOS is okay, if you replace itlib with itlibdos.icn)
This file is in the public domain.
    While away the idle moments watching the snake eat blank squares
on your screen.  Snake has only one (optional) argument -

    usage:  snake [character]

where "character" represents a single character to be used in drawing
the snake.  The default is an "o."  In order to run snake, your ter-
minal must have cursor movement capability, and must be able to do re-
verse video.

    I wrote this program to test itlib.icn, iscreen.icn, and some
miscellaneous utilities I wrote.  It clears the screen, moves the cur-
sor to arbitrary squares on the screen, changes video mode, and in
general exercises the terminal capability database on the target ma-
chine.
____________________________________________________________

Bugs:  Most magic cookie terminals just won't work.  Terminal really
needs reverse video (it will work without, but won't look as cute).

Source code | Program Library Page | Icon Home Page