Tower of Hanoi puzzle
The Tower of Hanoi is a famous maths puzzle and a favourite in computer-science classes. Move all the discs from the first peg to the last — one at a time, and never a bigger disc on top of a smaller one. With 3 discs it takes just 7 moves; each extra disc doubles the challenge. Choose 3 to 8 discs, tap or drag pegs to move, compare your moves with the minimum, and press Show me to watch the perfect solution. It's a great way to learn recursion and planning.
How to play
- Tap a peg to lift its top disc.
- Tap another peg to drop it (only onto a bigger disc or an empty peg).
- Move the whole tower to the right-hand peg.
Example
With 3 discs: small → right, middle → centre, small → centre, large → right, small → left, middle → right, small → right. That's the minimum of 7 moves. With 8 discs the minimum is 255 moves. Like this kind of thinking? Try thesliding puzzle or Sudoku.