By MRINAL SINHA
The project shows the visualization of the mathematical puzzle called Tower of Hanoi using C++ graphics.
TOWER OF HANOI VISUALIZATION :
In 1882 E. Lucas invented the mathematical puzzle commonly known as " The tower of Hanoi ".
The setup of the Tower of Hanoi contains :
1. Multiple disks of different sizes.
2. Three vertical rods of identical length.
Initially, the disks are placed in the conical form in one rod which means the biggest disk at the bottom and smallest at the top of the conical shape.
TASK: Our task is to move this conical structure from one to another vertical rod following certain rules.
The rules we need to follow are :
1. Single disk can be moved in one step.
2. In each move we are allowed to move the upper disk from one of the structures and placed it on top of another structure or an empty rod.
3. We not allowed to place a larger disk on top of a smaller disk.
REQUIREMENTS :
1. C++ graphics library should be installed.
2. Familiar with sorting algorithms and little knowledge in recursion and backtracking.
3. Familiar with graphics library fundamental function ( in C++ ) .
NOTE :
A graphics library is not installed by default on your IDE, you have to install it separately on your IDE.
Submitted by MRINAL SINHA (Mrinal)
Download packets of source code on Coders Packet
Comments