Towers of Hanoi Game Solutions

Category:
Multimedia/Games
Type:
Applications
Difficulty:
Intermediate
Author:
Vishal

Version Compatibility: Visual Basic 6

More information:
The Towers of Hanoi is a well-known game. The object is to move different size rings from a left peg to a right peg, with the use of a center peg allowed. You may only move one ring at a time, you must never allow a large ring to rest on a smaller ring. See http://www.dcs.napier.ac.uk/a.cumming/hanoi/ or search google for more information.

Here I have showed how you can solve it with the help of a program. More important is the fact that I've used recursion to solve it. For those who are learning recursion this may be a good start.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download hanoi.zip