Background music

Background music pauses in this window. Click a track to hear a preview.

Choose music
12%

Rules

Tower of Hanoi – Rules

Édouard Lucas's puzzle of 1883: a tower of wooden discs on the left rod. Move it to the right rod one disc at a time, never putting a larger disc on a smaller one — in as few moves as you can.

Grokipedia

Goal

Move the whole tower from the left rod to the right rod.

The rules

Move one disc at a time: the top disc of a rod onto another rod. A disc may never lie on a smaller one.

The fewest moves

A tower of n discs needs at least 2ⁿ − 1 moves: 7 for three, 31 for five, 255 for eight. The trick: to move a disc, first move every smaller disc out of its way, onto the third rod.

To move the largest disc, the smaller ones must first stand on the third rod: then it goes straight to its place.
To move the largest disc, the smaller ones must first stand on the third rod: then it goes straight to its place.

Height

Choose a tower of 3 to 8 discs. Every disc more doubles the work.

Playing here

Click or tap a rod to lift its top disc, then the rod to put it on. With the keyboard, move between the rods with Tab and choose with Enter.

Play now

Invite friends

Send the link to friends and arrange a game together.

WhatsApp