Remaining minimum 7
Preparing the puzzle…
One disk at a time. Build the whole tower on C without placing a large disk on a smaller one.
Moves0
Round minimum7
Remaining minimum 7
Preparing the puzzle…
Tower of Hanoi is a planning puzzle played on three pegs with disks of different sizes. You repeatedly make space for a larger disk by moving the smaller tower somewhere else. The goal is the complete stack on C.
This independent browser version has eight disk counts from 3 to 10 and two starting modes. It uses original code and illustrations. No download, account, numbered level campaign or time limit is required.
These are repeatable configurations rather than numbered levels. Classic puzzles use 3–10 disks. Their exact minimum is 2ⁿ − 1: 7, 15, 31, 63, 127, 255, 511 and 1,023 moves respectively.
Scrambled puzzles start with disks on more than one peg, and can require fewer moves. The round minimum is calculated from that starting arrangement, while Remaining shows the exact shortest distance from the current position. A detour can increase it.
Your current arrangement, move count and recent undo history save locally when storage is available. They are not synced to other devices. Reloading a solved puzzle keeps it solved; Restart lets you play again.
If the largest disk is not on C, all smaller disks must first gather on the third peg. Move the largest disk onto C, then move the smaller tower on top. Repeat this same idea at the next smaller scale.
The classic 2ⁿ − 1 formula starts with a whole tower on one peg. It is not the answer for every scrambled position. Compare your moves with this round’s minimum, and use Remaining to judge the current position.
Think through the next large-disk transfer. If you get stuck, reveal one next step, carry it out yourself, then try the next decision without a hint. Undo is available while the puzzle is unfinished.
Move only the top disk, one at a time. Put it on an empty peg or a larger disk. Solve the puzzle by collecting every disk on peg C.
A classic seven-disk tower needs 2⁷ − 1 = 127 moves. A scrambled seven-disk position has its own minimum, displayed for that arrangement.
No. The minimum is a target for efficient play, not a move limit. You can take detours, undo recent moves or restart. All legal arrangements can reach the goal.
No. It identifies one legal move on a shortest path. You still choose the two pegs yourself; simply viewing a hint does not add a move.