The Tower Of Hanoi


According to legend, priests at the Temple of Brahma in the Indian city of Benares are toiling around the clock at a critical chore.

On a brass platform there stands a row of three tall diamond pins.  Stacked on them are 64 large discs with holes in their centers; the discs are solid gold, each a different size. The priests move the discs one at a time from one pin to another, without ever placing any disc upon a smaller one.  Their ultimate challenge is to move all the discs from the first pin to the last pin.  When this mission is complete, the Universe will end in a giant clap of thunder.

Fortunately for the rest of us, the world will not disappear anytime soon — at least, not for this reason.  Solving of the puzzle requires a minimum of 264-1 moves, a rather imposing number.  In fact, even if the priests are able to move the discs at the rate of one per second (which they cannot), the Universe will not explode for nearly 600 billion years!


A number of different names have been ascribed to this puzzle.  As the most common choice is Tower of Hanoi, that title has been selected.

You may attempt to destroy all of Creation yourself on a more limited scale, using up to 12 discs.  Here is a sample game screen:



To play the game online; just Left-Click on: TOWER OF HANOI

Or:  Download   HANOI.EXE   using  Right-Click...Save Target As...

Place the file anywhere you wish.  Create a shortcut to it, and you are ready to go!

For more technical information on Tower of Hanoi, click here:

Programming the Tower of Hanoi

Tower of Hanoi