🗼 Tower of Hanoi

By Khelo Guru Editorial Team · Published · Last updated

Tower of Hanoi

Four disks, three pegs, one rule: never place a bigger disk on a smaller one. Move the whole tower to the last peg — the perfect solution takes just 15 moves.

Moves: 0 Best: —
Move all 4 disks to the last peg.
Quick answer: The Tower of Hanoi is a 140-year-old puzzle about patience and planning. Four disks sit stacked on the left peg, largest at the bottom and smallest on top.

How to play Tower of Hanoi

The Tower of Hanoi is a 140-year-old puzzle about patience and planning. Four disks sit stacked on the left peg, largest at the bottom and smallest on top. Your job is to move the entire stack to the right peg — one disk at a time, never placing a larger disk on top of a smaller one, and never setting a disk anywhere but on a peg. The middle peg is your helper. With four disks, the perfect solution takes exactly 15 moves, and every extra move is a small detour. There is no timer here; the only thing you are racing is the ideal solution.

Controls

Tips & strategy

Scoring

Every move counts as one — fewer is better, with 15 as the perfect score for four disks. Finish in 15 and you have played it perfectly; under 25 is strong play. Your best result is stored in your browser so you can watch your efficiency improve. The real reward is the moment the final disk lands and the whole tower stands on the last peg.

← Play more free games