Tower of Hanoi Puzzle
Move the stack of discs to another peg, one disc at a time and never a larger on a smaller, with a new puzzle daily.
Tap or drag a disc to another peg. Keys: 1, 2 and 3 pick up a peg's top disc and put it down, Esc puts it back, U undo, R restart, H hint.
Tower of Hanoi plays at gamebreezy.com.
How to play
- Move every disc onto the goal peg, the one with the gold star. Move one disc at a time, and never put a larger disc on a smaller one.
- Tap a peg to pick up its top disc, then tap the peg to put it on, or drag the disc there. On a keyboard, 1, 2 and 3 pick up and put down.
- The number after your moves is the fewest the puzzle can be done in: match it for a perfect solution.
- Undo takes a move back, Restart sets the discs up again, and Hint shows the next move of the shortest way from where you are.
- Classic moves a whole tower of 3 to 8 discs. The daily puzzle, the same for everyone, starts with the discs spread over all three pegs.
More games
About Tower of Hanoi
The Tower of Hanoi is a puzzle of three pegs and a stack of discs, each smaller than the one below it. The French mathematician Édouard Lucas brought it out in 1883 with a story of a temple where priests move a tower of 64 golden discs, and the world ends when they finish. At one move a second, they would need about 585 billion years.
Here you move towers of three to eight discs, and the number beside your moves is the fewest the puzzle can be done in, so you always know how close you came. A new daily puzzle, the same for everyone, starts with the discs spread over all three pegs.
Tower of Hanoi plays free in the browser on a computer, a tablet or a phone, with no download or sign-up.
Rules
Move one disc at a time, always the top disc of a peg, onto another peg. A disc may go onto an empty peg or onto a larger disc, never onto a smaller one. The puzzle is solved when every disc stands on the goal peg, the one marked with a gold star.
Tap a peg to pick up its top disc, then tap the peg it should go to, or drag the disc there. On a keyboard, the keys 1, 2 and 3 pick up and put down. A move that breaks the rules is refused with a small shake.
The fewest moves
A tower of n discs takes at least 2 to the power n, minus one, moves: 7 for three discs, 31 for five and 255 for eight. Each disc more doubles the work, because the whole smaller tower has to be moved out of the way, the largest disc moved once, and the smaller tower moved back on top.
The daily puzzle uses the same idea from a mixed start. Its par is worked out exactly: find the largest disc not yet on the goal, gather every smaller disc on the third peg, move it across, and repeat.
Tips
In a full tower the smallest disc moves on every other turn, always round the pegs in the same direction: towards the goal first when the number of discs is odd, towards the other peg when it is even. Between its moves there is only ever one legal move that does not touch it.
When you lose the thread, Hint shows the next move of the shortest way from where you are, even after a few wrong turns, and Undo takes moves back one at a time.
Questions people ask
Can every puzzle be solved?
Yes. Any position with each peg's discs in order can be gathered on any peg, and the game knows the fewest moves from every one of them.
What does par mean in the daily puzzle?
It is the fewest moves the day's start can be solved in. Match it for a perfect solution.
Does the daily puzzle change size?
Yes. It has four discs on Monday and Tuesday, five on Wednesday and Thursday, six on Friday and Saturday, and seven on Sunday.
Is my game saved?
Yes, in this browser: a tower you leave halfway is there when you come back, and past days' puzzles wait in the archive.