Tower of Hanoi

A classic puzzle game!

Sorry, you need a Java-enabled browser to view this page.
The goal is to move all the discs from the left peg to the right one. Click and drag with the mouse to move a disc. Only one disc may be moved at a time. A disc can be placed either on an empty peg or on top of a larger disc. Try to move all the discs using the smallest number of moves possible.

Select the number of discs to vary the difficulty of the puzzle. You should have no problem with 3 discs, but can you solve the puzzle with 12 discs?

Compete against a friend to see who can solve the puzzle in the shortest time.

Select AutoSolve to watch the computer solve the puzzle. The Speed scrollbar determines how fast the computer moves.