Games with Turbo Pascal Source (TP5 for DOS/Windows) -- Master Mind, Rubiks Cube.
mastermind.pas - Source code.
mastermind.exe - Compiled for DOS/95/NT (9K).
cube.pas -- Rubik's cube simulator, Source code.
cube.exe -- Rubik's cube simulator, Compiled for DOS/95/NT (13K).
graphlib.pas
Turbo Pascal 3 source of simple graphics library.
Included by the several programs below.
hex.pas
Draws recursive Hexagons (includes graphlib.pas).
See N. Wirth's book on Pascal/Programming on recursive
structures.
knight.pas
Recursively searches for a Knight's tour on a chessboard.
Displays search progress on the board in realtime.
nqueen.pas
Recursively searches for safe way to place Queens on a chessboard.
Displays search progress on the board in realtime.
nyc.pas
Draws a random walk graph (graphics mode).
ring.pas
Makes telephone ringing sound (does NOT need sound card).
worm-1.pas
Makes a worm slither over the screen (graphics mode).
worm-2.pas
Makes a musical worm crawl over the screen (ascii mode),
was once a DOS screen saver.
Turbo-C/C++ source of more games for DOS and Linux