Tower of Hanoi

Move every disk from one peg to another. A larger disk can never sit on top of a smaller one.

Moves: 0Minimum moves: -

What is the Tower of Hanoi?

The Tower of Hanoi is a classic logic puzzle invented by French mathematician Γ‰douard Lucas in 1883. You're given three pegs and a stack of disks of different sizes, and the goal is to move the whole stack from one peg to another following the rules below.

Rules

The minimum-moves formula

With n disks, the minimum number of moves needed is 2ⁿ βˆ’ 1. For example, 4 disks need at least 15 moves, and 6 disks need at least 63. Each extra disk nearly doubles the number of moves required.

Frequently Asked Questions

How do I move a disk?

Click the peg you want to move a disk from, then click the peg you want to move it to. Moves that break the rules are simply ignored.

Are there other logic puzzles like this?

Yes β€” check out our number merge puzzle, where you combine tiles, or Minesweeper, where you avoid hidden mines.