Tower of Hanoi

Profile
Welcome! Get ready to stack, move, and win!

Select the Number of Disks to Start:

Start

Help

How to play?

The objective of the puzzle is to arrange all the disks on single container (on any of the 3 containers) in descending order, obeying the following rules:

1. Only one disk may be moved at a time

2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack or on an empty rod.

3. No disk may be placed on top of a disk that is smaller than it.

How score is calculated?

The score is calculated based on the amount of moves and the time (in seconds) spent to finish the game, it can be deducted by the following formula:

5000 - (moves * 5) - (secs/2)

Origin of the game

According to Wikipedia the puzzle was introduced to the West by French mathematician Édouard Lucas in 1883.

Numerous myths about the puzzle's ancient and mystical nature emerged almost immediately, including one about an Indian temple at Kashi Vishwanath containing a large room with three aged poles surrounded by 64 golden disks.

Acting on the command of an ancient prophecy, the Brahmin priests have been moving these disks according to Brahma's immutable rules since that time.

The puzzle is therefore also known as the Tower of Brahma. According to legend, when the last move of the puzzle is completed, the world will end.