πŸ—Ό Tower of Hanoi

Move the whole stack of disks to the tower on the right. You can only move one disk at a time and never a big one onto a smaller one.

Moves0
Minimum7
Disks3
Tap a tower to pick up the top disk

πŸ“– How to play Tower of Hanoi

  1. You start with all the disks stacked on the left tower, from biggest (bottom) to smallest (top).
  2. The goal is to move the whole stack to the right tower.
  3. Rules: move only one disk at a time (the topmost one from a tower) and you can never place a bigger disk on a smaller one.
  4. To move: tap the source tower (pick up the top disk) and then tap the destination tower.
  5. Try to solve it in the fewest moves possible (2βΏβˆ’1).

πŸ’‘ Tip: to move N disks, first move the top Nβˆ’1 to the auxiliary tower. It's a pattern that repeats.

πŸ“– Want to master it? Read the full guide: How to solve Tower of Hanoi: method and minimum moves.