Arcade / Tower of Hanoi

πŸ—Ό Tower of Hanoi

Move the whole tower to the right-hand peg, one disc at a time, never putting a bigger disc on a smaller one. Try to match the fewest possible moves.

Tower of Hanoi
HOW TO PLAY

How to play Tower of Hanoi

  1. Pick 3 to 7 discs.
  2. Tap a peg to pick up its top disc, then tap another peg to drop it.
  3. Move the whole tower to peg C. A bigger disc can never sit on a smaller one.
HOW SCORING WORKS

The rules in detail

You start with all discs on peg A, biggest at the bottom. Move one top disc at a time to another peg; a disc may never sit on a smaller disc. The puzzle is solved when the whole tower is on peg C. The fewest possible moves is 2 to the power of the number of discs, minus 1: 7 moves for 3 discs, 15 for 4, 31 for 5, 63 for 6 and 127 for 7. Each size keeps its best (fewest moves) on this device. Keys 1, 2 and 3 (or A, B and C) also select pegs.

Tips

  • With an odd number of discs, move the smallest disc first to peg C; with an even number, to peg B.
  • The smallest disc moves every second turn, always in the same direction around the pegs.
  • On the other turns there is only ever one legal move that does not use the smallest disc.
MORE ARCADE

Play another

Privacy controls

Core features use a necessary session cookie. Your theme choice, explicitly bookmarked tool IDs and saved pet-name favourites are stored on this device. Calculator and game inputs are not stored by the site.

Funmello is free because public pages show Google ads. Google’s consent message asks visitors in the EEA, UK and Switzerland (and offers US state opt-outs) before personalised ads are used. Accounts, shortlists, polls and the name studio never load ad code, and nothing you type into a game or calculator is sent to Google.

Read the full privacy notice