Tower of Hanoi
Medium
00:00
Classic
Medium Tower of Hanoi — what to expect
Four disks doubles the move count and forces you to think ahead. You can't brute-force your way through 15 moves as easily. This is where consciously applying the recursive strategy (move n-1 disks aside, move the biggest, move n-1 back) becomes faster than guessing.
How to play Tower of Hanoi
- Move every disk from the left peg to the right peg.
- Move one disk at a time, and only the top disk of a stack.
- Never put a bigger disk on a smaller one. The middle peg is there to help.
- Drag a disk to another peg, or tap a peg and then the peg to move to. On a keyboard, 1, 2 and 3 pick the pegs.
- Each extra disk doubles the work: 3 disks take 7 moves at best, 10 disks take 1,023.
- To move a stack, first move everything above its bottom disk out of the way. The smallest disk moves on every other turn.