Hide
Privacy Policy

BrainBashers uses cookies and by using BrainBashers you agree to our use of cookies.

BB Logo
Spacer
Line
Line
Tower Of Hanoi

Tower Of Hanoi

In the great temple of Benares, beneath the dome that marks the centre of the world, rests a brass plate in which are fixed three diamond needles, each a cubit high and as thick as the body of a bee. On one of these needles, at the creation, God placed 64 discs of pure gold, the largest resting on the brass plate, and the others getting smaller up to the top one.

This is the Tower of Bramah. Day and night unceasingly the priests transfer the discs from one diamond needle to another according to the fixed and immutable laws of Bramah, which require that the priest on duty must not move more than one disc at a time and that he must place this disc on a needle so that there is no smaller disc below it.

When the 64 discs have thus been transferred from the needle on which at the creation God placed them to one of the other needles, tower, temple, and Brahmins alike will crumble into dust and with a thunderclap the world will vanish.

This is the story of the Tower Of Hanoi, created by Eduard Lucas under the name of M. Claus in 1883. It is interesting to note that the Brahmin priests would require 264 - 1 moves to complete their task. If they moved one disc per second, all day, every day, the task would take nearly 600 billion years.

Your task is quite simple, you can select between 2 and 8 discs, this would take the priests anywhere between 3 and 255 seconds. Please enter the number of discs on the first tower:

   

 

This website uses cookies, for more information please view our privacy policy.

Line
Line