DREAM 6800 · DREAMER programs

Tower of Hanoi

K. Semrad · DREAMER no. 17 (1982-01) p. 10 1K RAM

Tower of Hanoi screen 1Tower of Hanoi screen 2Tower of Hanoi screen 3

Move seven discs from peg 1 to peg 2 or 3, one at a time and never a larger on a smaller. Press the from peg and then the to peg. An illegal move shows an error message, and the win screen shows the move count.

Keys

1/2/3 = FROM peg then TO peg; any key restarts.

Files

FileVersionLoadRun
Tower Of Hanoi.c8main0200-03FFC000

Listing as transcribed (with notes): tower_of_hanoi.txt

Source

DREAMER no. 17 on archive.org, p. 10 (PDF page 19). Author: K. Semrad.

Corrections applied

Open doubts