Tower of Hanoi
Move the whole tower to the right hand peg.
Example
Example
An example to explore. No score or practice round is recorded.
Three disks, stacked on the left peg. Seven moves is the fewest it can take.
1 puzzle · The clock starts on your first move
- Moves
- 0 / 7
- Time
- 0:00
Move the tower to the right hand peg
Press the top disk of a peg and drag it along the row of pegs.
Press 1, 2 or 3 to pick up the top disk of that peg, then press 1, 2 or 3 again to drop it. The left and right arrows move between pegs, and Enter picks a disk up or puts it down. Press z to undo a move. Hold shift and press z to redo it. Press h for one move towards the answer. Press Escape or End to stop the round.
Read the three pegs as words
- Active time
- Moves
- Not measured
- Hints used
- Not measured
Round details
The score says how well you solved this deal. It is not a speed record, and it says nothing about any other puzzle. A deal you leave before it is solved is not saved.
Solve a smaller problem
Break a tower into smaller tasks. Make a plan, then move one disk at a time.
Loading practice…
Explore the method
Learn how a tower of disks comes apart, and which peg the first move goes to.
On by default unless you turn it off. Saved choices are kept. Shares starts, completions, replays and error categories. For ChatGPT visits, starts and completions may include the first QuickenBrain page and country. No answers, drawings or names.
How this data is usedHelp
Three pegs stand on a plank with a stack of disks on one of them. Move one disk at a time. A bigger disk can never sit on a smaller one. The deal is solved when every disk is on the right hand peg, the one with a ring worn into the wood.
Press the top disk of a peg and drag it along the row of pegs. Let go past a third of the way to the next peg and the disk moves there. Let go sooner and it goes back. You can also tap a disk and then tap the peg you want. A disk with only one legal peg goes there on the first tap. A peg that cannot take the disk goes pale while you hold it. Let go over that peg and the disk goes back where it was and turns red for a moment.
Three, four, five, six and seven disks all start as a tower on the left peg, and each one takes twice the moves of the level before it plus one. Scrambled deals five disks across the three pegs and always well away from home, so the fewest is different every time.
The page works out the fewest moves before the clock starts. It measures the distance from every position this puzzle can reach to the finished tower, so the number is exact and not a guess. The line under the board counts how far the board is from home while you play.
Hint makes one move for you. It picks a move that leads home in the fewest steps, and it says which disk went where. It counts as one of your moves. The round records how many hints you used. A deal played with a hint is saved to your statistics and counts as solved there. It is left out of the solving time and out of the community comparison.
The result is the moves you made against the fewest this deal could take, with the hints and the time. Undo takes a move back, and the move count goes down with it, so the number at the end is the moves standing on the board. The clock starts on your first move and stops when the last disk lands.
The score says how well you solved this deal. It is not a speed record, and it says nothing about any other puzzle. A deal you leave before it is solved is not saved.
The statistics page compares deals at the same level. Every saved deal is a solved one, so what it shows is the moves you made and the time you took.
To move a tower, move the smaller tower above the biggest disk first. Learn how the tower comes apart
About this practice
Move the whole tower to the right hand peg. One disk at a time, and never a bigger disk on a smaller one.
Learn a method
Move the smaller tower firstReport a problem
On by default unless you turn it off. Saved choices are kept. Shares starts, completions, replays and error categories. For ChatGPT visits, starts and completions may include the first QuickenBrain page and country. No answers, drawings or names.
How this data is used