Magnetic Tower of Hanoi (source code)

= Magnetic Tower of Hanoi
{wiki=Magnetic_Tower_of_Hanoi}

The Magnetic Tower of Hanoi is a variant of the classic Tower of Hanoi puzzle, which has been a popular mathematical and recreational challenge since it was introduced by the French mathematician Édouard Lucas in 1883. In the standard Tower of Hanoi, the puzzle consists of three rods and a number of disks of different sizes that can slide onto any rod.