Wills Way logo
Tower of Hanoi
Covered Bridge
Logic Game

About Tower of Hanoi:
The purpose of the game is to get the 3 discs stacked up on the right-most peg. However, 2 rules apply:

1. You may only move 1 disc at a time
2. You may only place a disc on an empty peg or on top of a larger disc. You may not place a larger disc on a smaller disc.

To move a disc, click on the disc then click on the peg you wish to move to. Invalid moves are ignored as are mouse clicks that are not on discs that may be moved. You will see a message including the elapsed time when you have successfully completed the puzzle.

Sorry. This applet requires a Java-enabled browser.

The buttons:

Reset: Resets the game board to the original configuration and resets the timer.

Release: Releases the currently selected item. This is helpful if you change your mind as to which piece you want to move. It is particularly important if you select the large piece when there is no valid place to put it.


I used this applet as an educational tool to help me learn Java programming. The Tower of Hanoi is a good learning tool because the game requires basic logic skills to solve - as well as to write the algorithms that control the game. This game is currently used on at least two school web sites: Johnson Memorial Elementary School in Ontario, Canada and a school in the United Kingdom. It has also been referenced by at least one university computer programming course and by a PBS site featuring resources for teachers. You are invited to study the source code and to use this applet for any educational purpose. Please let me know if you would like to link to this page or include the applet on your site. 

 

 

HOME | THE MODEL | SERVICES | RESOURCES | ABOUT ME

© 2004 John J. Wills. All rights reserved.