Professional Documents
Culture Documents
Soft Ware Lab Project Report: Tower of Hanoi
Soft Ware Lab Project Report: Tower of Hanoi
PROJECT REPORT
TOWER OF
HANOI
SUBMITTED TO:
Sayed Monower Hossain
Lecturer
Department of Computer Science And Engineering.
University of Dhaka.
SUBMITTED BY:
Iffat Anjum
Roll: 16.
Mohammad Maruful Haque
Roll:37.
Abdullah Al - Matin
Roll:23.
Batch:15.
SUBMISSION DATE:
04/03/2010.
TOWER OF HANOI :
Tower of Hanoi or Towers of Hanoi is a mathematical
game or puzzle. It consists of three rods, and a number of disks of different sizes
which can slide onto any rod. The puzzle starts with the disks in a neat stack in
ascending order of size on one rod, the smallest at the top, thus making a
conical shape.
OBJECTIVE OF TOWER OF HANOI:
We have used void DrawRectangle (rect A, int x) for drawing rectangle shape
of the piles.
iInitialize() to determine the window size & the name of the programe.
tower(int n,int sr,int md,int ds) to save the movement of piles in array.
int main() is the main function that calls all the functions we have used .
Now we showing the steps of the replacements. for easy going we taking three
disks. We need seven moves here.
Acknowledgement :
www.google.com.bd/
www.cplusplus.com
www.cse.univdhaka.edu/~cse102/