My Favorites

No favorites yet. Click the bookmark button on a tool page to add favorites.

Tower of Hanoi - Free Online | FunToolX

Use Tower of Hanoi online for free, no download required. FunToolX offers hundreds of fun online tools.

0
Moves
7
Minimum
Click a peg to lift its top disk, click another to drop it. Larger disks cannot rest on smaller ones. Move the tower to the rightmost peg.

About this tool

Tower of Hanoi is a free online game. Classic recursive puzzle, move the tower. Play instantly — no install, no waiting. It runs entirely in your browser — no download or sign-up needed.

There are three pillars. N discs of different sizes are stacked on the left pillar from bottom to top (the largest one is at the bottom). The goal is to move all discs to the rightmost pillar, only one plate at a time, and no large plates can be placed on top of small plates at any time.

N plates require at least 2^N - 1 steps to complete. Three plates have 7 steps, four have 15 steps, and five have 31 steps. Recursive thinking: First move the top N-1 plates to the middle column, then move the largest plate to the target, and finally move the N-1 plates from the middle to the target.

Drag the disk to the target pole and will automatically bounce back if the rule is violated (placing the big plate on the small plate). The step counter records the number of operations you have and whether the challenge can be completed in the minimum number of steps. Use CSS transform to realize drag and drop animation.

Hanot Tower puzzle game, move N discs of different sizes from one pillar to another. Only one can be moved at a time. The large plate cannot be placed on the small plate.