The Towers of Hanoi Applet
The puzzle is defined by the initial state (upper area) and the final state (lower area).
  • Choose the number of disks.
  • Select Armar inicial to create the initial configuration in the upper area, and Armar final to create the final configuration in the lower area. Next, click on the desired poles to put the disks.
  • You can also select Canónico to create a canonical setting, or Aleatorio to set a random configuration.
  • Select the delay between disk moves.
  • Click Solucionar to solve the puzzle.

Once solved, the status line will show the required number of moves for the puzzle.



TowersOfHanoi.zip: Complete source code of core algorithm and the applet. After downloading, please check the README.txt file and the GPL license agreement.