← Back to Cognitive Train

🗼 Tower of Hanoi

Classic Recursive Logic Puzzle
⚡ Quick Start
Click a peg to lift its top disk, then click another peg to drop it
A larger disk can never sit on a smaller one — move every disk to Peg C
A
B
C ★
Moves: 0 Time: 0:00
🎯 Move all disks to Peg C
A
B
C ★

🎉 Puzzle Solved!

Your Moves
0
Optimal Moves
0
Efficiency
Time
0:00
Back to Start
0 / 15
Optimal Solution
A
B
C ★
📊 Recent Results
📘 Detailed Instructions

Tower of Hanoi is a classic mathematical puzzle introduced in 1883. The objective is to move an entire stack of disks from one peg to another, following three simple rules.

Rules:

How to play: Click a peg to lift its top disk (the disk rises and the rod turns gold). Click a second peg to drop it there, or click the same peg again to cancel. Illegal moves are simply ignored and are not counted.

Minimum moves in Classic mode:

Random Start mode scatters the disks across all three pegs. The minimum move count is calculated for that exact position using a shortest-path search, so your efficiency score stays accurate.

Strategy tip: Think recursively. To move n disks from A to C, first move n−1 disks from A to B, then move the largest disk from A to C, then move the n−1 disks from B to C.