Toolzy

Tower of Hanoi

Move the stack of disks to the last peg without placing a larger disk on a smaller one.

Moves: 0 (best 7)

Move all disks from the first peg to the third. You can never place a larger disk on a smaller one. Solve it in the fewest moves.

How to use

  1. Click a peg to pick up its top disk.
  2. Click another peg to drop the disk there.
  3. Move the whole stack to the right peg to win.

Frequently asked questions

What is the minimum number of moves?
2 to the power of the disk count, minus one.
Can I place any disk anywhere?
No, a larger disk can never sit on a smaller one.

Related tools