Fun & Games · Puzzle

Tower of Hanoi

Move the whole tower from peg A to peg C. You can only move one disk at a time, and never place a larger disk on a smaller one. Minimum moves for n disks: 2n−1.

Moves0
Minimum7
A
B
C
Click a peg to pick up the top disk, then click another peg to drop it.

🧩 Classic rules

Move the tower with one-disk moves and no larger-on-smaller.

📈 Difficulty levels

3 to 6 disks — from a warm-up to a real brain workout.

🤖 Auto-solve

Watch the optimal recursive solution animate step by step.

🏆 Efficiency meter

Compare your move count against the mathematical minimum.

More classic games

Try Sudoku, 2048, Word Chain and more from the Fun & Games collection.

Play Sudoku