Move all discs to the rightmost peg in the fewest moves!
Tower of Hanoi is a legendary mathematical puzzle invented by French mathematician Edouard Lucas in 1883. The challenge is deceptively simple: move a stack of differently-sized discs from one peg to another using a third peg as an intermediary. The rules are strict, allowing only one disc to be moved at a time and never placing a larger disc on top of a smaller one. The minimum number of moves required follows the formula 2 to the power of n minus 1, so 3 discs need 7 moves while 7 discs require 127 moves. PlayBrain lets you choose between 3 and 7 discs, with a move counter tracking your efficiency. This puzzle is widely used in computer science education to teach recursive algorithms and problem decomposition. Play it free in your browser with no download.