Skip to main content

Tower of Hanoi

Move all disks from the first peg to the third using the minimum number of moves. Classic recursive puzzle, 3 to 7 disks

Move all disks from the first peg to the third using the minimum number of moves. Classic recursive puzzle, 3 to 7 disks
FAQ

About Tower of Hanoi

The Tower of Hanoi is one of the most elegant mathematical puzzles ever devised. You start with a stack of disks arranged by size on the leftmost peg, largest at the bottom. The goal: move the entire stack to the rightmost peg, one disk at a time, never placing a larger disk on top of a smaller one.

Why it trains your brain. The optimal solution for n disks requires exactly 2n - 1 moves, a fact that emerges naturally once you play enough. The puzzle forces recursive thinking: to move n disks to the right peg, you first move n-1 disks to the middle, move the bottom disk to the right, then move the n-1 stack on top. Players who internalize this pattern can solve it flawlessly every time.

Difficulty scales naturally. PlayMemorize starts you at 3 disks (7 moves minimum) and ramps up to 7 disks (127 moves minimum). A move budget above the optimal is given; the challenge tightens as your labyrinth level rises.

Part of the PlayMemorize family of brain-training games. Runs entirely in your browser, works offline as a Progressive Web App.

How to master

FAQ