Tower of Hanoi is a free classic disk puzzle you can play in your browser. Move an entire stack to a new peg one disk at a time without placing a larger disk on a smaller one. Casual with undo, Perfect Run, or Time Attack on eight disks.
Also known as: towers puzzle, disk stack puzzle, peg moving puzzle
Play Tower of Hanoi free online with 3–8 disks. Casual with undo, Perfect Run with a move cap, or Time Attack on 8 disks in your browser.
How to play Tower of Hanoi
Pick Casual (undo allowed, 3–8 disks — larger counts unlock after clearing the previous size in Casual), Perfect Run (no undo, lose if moves exceed 2^N − 1), or Time Attack (8 disks, clock runs).
Tap a peg to lift its top disk, then tap another peg to place it. Larger disks cannot sit on smaller ones — invalid moves shake and do not count.
Move the entire stack to the rightmost peg to win.
Perfect Run move cap is the optimal 2^N − 1 moves. Time Attack allows extra moves but scores time and efficiency.
Win score = max(0, 1000 − 25 × extra moves − seconds), where extra moves = moves used − (2^N − 1). Best score is saved per mode and disk count on this device.