Additionally, paste this code immediately after the opening tag:

Tower of Hanoi

The Tower of Hanoi is a classic mathematical puzzle involving three pegs and a number of disks. The disks are ...

Free

Store review

The Tower of Hanoi is a classic mathematical puzzle involving three pegs and a number of disks. The disks are stacked in order of decreasing size on the left peg, and the objective is to move all disks to the right peg. The three rules to move the disks are:

1. You may only pick up the top disk of a peg
2. Only one disk may be picked up at a time
3. You may not place a larger disk on top of a smaller one

The optimal number of moves for any number of disks, n, is 2n-1 moves. For example, the optimal solution for a game with 3 disks is 7 moves.

You can set the number of disks anywhere from 2 to 12 or customize the appearance of the game in the settings menu.

Challenge yourself to see how fast you can solve the puzzle, or just relax and turn the timer off.

The game is automatically saved so you can pause and resume at any time.

Last update

Jan. 3, 2020

Read more