Tower of Hanoi
Move every disc to the last peg, without ever putting a larger disc on a smaller one.
Resolvido!
Leva todos os discos para o último pino.
- Movimentos
- 0
- Mínimo
- 7
- Tempo
- 00:00
Clique num pino levanta o disco de cima; noutro, pousa-o Toque num pino levanta o disco de cima; noutro, pousa-o
There are 3 pegs, and all the discs start stacked on the first one, in order of size, with the largest at the bottom and the smallest on top. The goal is to move the whole tower to the last peg.
You can only move one disc at a time, always the top disc of one of the pegs, and you can never put a larger disc on top of a smaller one, on any of the three pegs.
Tip: A good way to think about the puzzle is recursively: to move N discs from one peg to another, first move the top N-1 discs to the spare peg, then move the largest disc on its own to the destination peg, and finally repeat the same process to bring the N-1 discs on top of it. The minimum number of moves needed to solve the puzzle with N discs is always 2 to the power of N, minus 1.
The Tower of Hanoi was invented in 1883 by French mathematician Édouard Lucas, the same creator of Dots and Boxes. To promote the puzzle commercially, Lucas also made up a legend in which, in a temple, Buddhist monks were moving 64 golden discs between three diamond pegs, and the world would end as soon as they completed the task.
That legend hides a mathematical joke: solving the Tower of Hanoi with 64 discs would take 2 to the power of 64 minus 1 moves, a number so large that, even at one move per second without stopping, it would take hundreds of billions of years to complete.
Rate this game
No ratings yet
Log in to rateYour stats
Create a free account to keep your wins and your favourite games.
Create a free account →