🧠

Play Tower of Hanoi Guide

How to play Play Tower of Hanoi like a pro

How to Play

The Tower of Hanoi shows three pegs and a stack of disks of different sizes on one peg. Your goal is to move the entire stack to another peg. You may move only one disk at a time, and you may never place a larger disk on top of a smaller one.

The minimum number of moves for N disks is 2^N − 1. For three disks, that is seven moves; for seven disks, it is 127.

Controls

Click the source peg, then the destination peg. Some versions let you drag disks.

Scoring

The number of moves is the main metric. Fewer moves score higher.