This is a simulation of a game of logic that originated in the Middle East. It is sometimes called Pharaoh's Needles, but its most common name is the Towers of Hanoi.
Charles Lund wrote this program
The game is published as type-in source code in Basic Computer Games (Microcomputer Edition), ed. David H. Ahl with Steve North, Workman Publishing, New York, 1978 (ISBN 0-89480-052-3).
The BASIC source code listing is published in Microsoft BASIC 3.0; suggestions for conversion to a wide range of other BASIC implementations are provided.