← Play in Phone The disc tower · classic logic

Logic

Tower of Hanoi

3–8 discs Star ratings Undo & hints

Move the whole tower to the goal peg (right). Tap a peg to lift its top disc, then tap where it goes, or drag it. A bigger disc can never sit on a smaller one.

0:00
All Games

How to play Tower of Hanoi

You start with a stack of discs on the left peg, biggest at the bottom. Your goal is to move the whole stack to the right peg, which is the goal.

  1. Tap a peg to lift its top disc, then tap the peg where it should go. You can also drag a disc to another peg.
  2. Move one disc at a time, and only the top disc of a peg.
  3. A bigger disc can never sit on top of a smaller one.
  4. When the whole tower is on the right peg, you win.

Discs, par and stars

Choose between 3 and 8 discs. More discs make a much longer puzzle. The counter shows your moves next to the par, which is the fewest moves that can solve it. Solve it at par without using hints for three stars.

Undo takes back your last move, and Hint shows the best next move. Your best result for each size is saved in this browser. Tip: to move a tower of discs, first move everything above the biggest disc to the middle peg, move the biggest disc across, then move the rest on top of it.