Tower of Hanoi
Move a tower of discs from the first peg to the third, one disc at a time, never a bigger disc on a smaller one.
Tower of Hanoi is the classic disc puzzle on a velvet tray: three needles, and a tower of gold discs, biggest at the bottom, standing on the first. You can play towers of 3 to 8 discs, and an owl beside the tray knows the fewest moves for each.
The goal
Move the whole tower from the first needle to the third. A tower of n discs takes at least 2 to the power n, minus 1, moves. The header shows the moves you have made and how many are left from where you stand at the fewest.
| Discs | Fewest moves |
|---|---|
| 3 | 7 |
| 4 | 15 |
| 5 | 31 |
| 6 | 63 |
| 7 | 127 |
| 8 | 255 |
The rules
- Move one disc at a time, and only the top disc of a needle.
- Never put a bigger disc on a smaller one. A needle that cannot take the disc leaves it in your hand.
- The tower is done when every disc stands on the third needle.
Controls
- Tap a needle to lift its top disc, then tap another needle to put it down. Tap the same needle again to put the disc back.
- On a computer, press 1, 2 or 3 to pick up the top disc of that needle, then a second number to put it down. Z takes back your last move and Escape puts the disc back.
- Take back, at the foot of the screen, undoes your last move as often as you like.

The owl
The owl speaks after every move: it names the next step on the shortest way. Ask the owl, at the foot of the screen, gets one answer when you want it. In Settings, The owl after every move turns the running advice off, and the owl then speaks only when asked.
When a tower is solved
The discs light, a stave shows your solve move by move, and the owl names the detours you made. Again plays the same size; the next size up follows it. A solve in the fewest possible moves is marked with a spark on the size's rung.
Sizes and settings
- Home shows a ladder of sizes from 3 to 8 discs. A size you have solved carries a gold bar, and the fewest moves you have solved it in is kept.
- A tower you leave unfinished waits on Home as Continue, at the move where you stopped.
- The gear, top right, opens Settings: the size of the next tower, a new tower, Home, the owl, sound, and a link to the site's sound and music settings. Sound is off until you turn it on.
Coins
A solved tower pays 10 coins, once for each tower. Replaying the same tower after a take-back pays nothing more.
Your fewest moves per size, your last settings and the tower in progress are kept on your device.
More games
- Free games for your phone: Every game on the site, with how it plays by touch.
- Trailblades: Play a knight, an archer or a mage through rounds of slimes, goblins and golems, with bosses at rounds 3, 6 and 10 of every ten.
- Orbit Rumble: Space dogfights with four ships, against bots or a second player on the same device.
- Moat & Mortar: Tower defence on four maps, with six towers to build and upgrade and boss waves to hold.
- Tic Tac Toe: Climb a ladder of five computer opponents, or play a friend on boards up to 5×5.
- Gilded Age: Tower defence: build towers on high and low ground to stop the enemies pouring from a crack before they reach the Anchor.
- Lantern Deep: Dive through five depths and the endless Abyss as a paper-lantern squid. Eat what is smaller and slip past what is bigger.
- Ripple Lake: Sail a sea chart in a small boat, cast at the schools of fish and fill your logbook with 30 species across three waters.
- Hyper Shards: Fly a glass ship up five stained-glass panes, and collect the shards enemies drop to fire Hyper. Play alone or with a friend.
- Sky Hamlet: Clear five floating islands and build a village on them cottage by cottage, then glide over it in a paper glider.
- Seed Hollow: Grow one seed from a windowsill pot to a valley.
- Street Stalls: Merge ingredients into the street food of Bangkok and Taipei and serve the people at your stall.
- Powers of 2: Slide numbered tiles and merge equal ones to reach the 2048 tile, with every move graded and the way back after a loss.
- Nonograms: Fill the grid from the numbers on its rows and columns until a picture appears, from 5 × 5 to 15 × 15.
- Flip Discs: Trap a line of discs between two of yours and flip it, against a computer at three strengths, with an owl for hints.
- Cube: Learn to solve a 3x3 cube: the notation first, then the Layers, CFOP and Roux methods, with a hint after every move.
- Minesweeper: Open every square with no mine on boards that logic can always clear, with a daily board and an owl that names the next safe square.
- Four in a Row: Drop discs into a seven-column window against the computer at six levels, with an owl that shows which columns win.
- Suds Pop: Aim and fire bubbles to match three of a colour, and pop the bubbles that hold the rest so whole groups fall.