How to play Tower of Hanoi
All the disks start stacked on the left peg, biggest at the bottom. Move the whole tower to the right-hand peg.
- Move one disk at a time: tap a peg to pick up its top disk, then tap another peg to drop it. You can also drag it.
- You can never put a bigger disk on top of a smaller one.
- The fewest possible moves is 2ⁿ − 1 for n disks: 7 for 3 disks, 31 for 5, and 255 for 8. Matching it is a perfect solve.
Tip: with an odd number of disks, move the smallest disk to the right first. With an even number, move it to the middle first. After that, every other move is the smallest disk, always going around the same way.