Tower
of Hanoi |
||
Logic
Game |
About Tower of Hanoi: 1. You may only move 1 disc at a time 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. |
|
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.
|
|||
© 2004 John J. Wills. All rights reserved. |