OmniGame logoOmniGame

🗼 Tower of Hanoi

Move the stack — one disc at a time, never larger on smaller.

Loading game…

游戏内文字目前为英文,多语言版本制作中。

Tower of Hanoi 怎么玩

  1. Click a peg to pick up its top disc, then click another peg to place it there.
  2. You can never place a larger disc on top of a smaller one.
  3. Move the entire stack from peg A to peg C in as few moves as possible.
  4. The optimal number of moves for n discs is 2ⁿ − 1.
  5. Use keyboard keys 1, 2, 3 to select and target pegs.

技巧与攻略

  • Start by thinking recursively: to move n discs you must first move n−1 discs out of the way.
  • With 3 discs the minimum is 7 moves; with 8 discs it's 255 — plan ahead!
  • Use the Auto-Solve button to watch the optimal solution animated step by step.

Tower of Hanoi — 常见问题

What is the minimum number of moves?

For n discs the mathematical minimum is 2ⁿ − 1: 7 for three discs, 15 for four, up to 255 for eight.

Can I watch the computer solve it?

Yes — hit Auto-Solve and the game will animate every step of the optimal recursive solution. Press Stop at any time.

更多好玩的游戏