Skip to content

Tower of Hanoi, 5 discs

Move 5 discs to the right peg. Minimum 31 moves; fewer moves rank higher.

Controls Goal: move all 5 discs from the left peg to the right peg. Rules: one disc at a time, only the top disc, and a disc may only sit on a larger disc or an empty peg. Controls: with mouse or touch tap a peg to lift its top disc and tap the destination peg (two taps); tapping the same peg again cancels. On a keyboard press 1, 2 or 3 to choose a peg, or use the left/right arrows and Enter or Space. A move that breaks the rules shakes and is not counted. Score and ranking: the number of moves, fewer is higher; the minimum is 31 (2^n - 1). Each disc count has its own ranking, and time does not matter so there is no pause. Tip: always cycle the smallest disc in the same direction (to the right if the disc count is odd, to the middle if even), and in between make the only legal move that does not involve the smallest disc - that solves it in the minimum number of moves.

Ranking

# Name Result
No records yet. Be the first.