How to play Tower of Hanoi
- Pick 3 to 7 discs.
- Tap a peg to pick up its top disc, then tap another peg to drop it.
- Move the whole tower to peg C. A bigger disc can never sit on a smaller one.
Move the whole tower to the right-hand peg, one disc at a time, never putting a bigger disc on a smaller one. Try to match the fewest possible moves.
You start with all discs on peg A, biggest at the bottom. Move one top disc at a time to another peg; a disc may never sit on a smaller disc. The puzzle is solved when the whole tower is on peg C. The fewest possible moves is 2 to the power of the number of discs, minus 1: 7 moves for 3 discs, 15 for 4, 31 for 5, 63 for 6 and 127 for 7. Each size keeps its best (fewest moves) on this device. Keys 1, 2 and 3 (or A, B and C) also select pegs.