Friday, 24 March 2017

Computer Graphics- 10. Tower Of Hanoi Using OpenGL

Tower of Hanoi Using OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT TOWER OF HANOI.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on TOWER OF HANOI and the implementation and demonstration of TOWER OF HANOI using the computer graphics and OpenGL API.

Objective of Project:- The main aim of this project is to develop the puzzle TOWER OF HANOI using graphics to develop a suitable graphics package. 

Rules:- The objective of the puzzle is to move the entire stack to another rod, obeying the following rules:
  • Only one disk may be moved at a time.
  • Each move consists of taking the upper disk from one of the rods and sliding it onto another rod, on top of the other disks that may already be present on that rod.
  • No disk may be placed on top of a smaller disk.
  • The entire implementation of the puzzle is viewed in different lighting modes.
Description:- Creating the interactive program like Tower of Hanoi was a very interesting experience. using the two different API’s was a very useful part of the program success .TheTower of Hanoi  is a interactive 3D program. OpenGL has given us the capability to easily create the CONE and TORUS and position them in their respective positions. The Tower of Hanoi application has demonstrated how a users input can be processed at a very fast speed and re-displayed on the screen.


Tower of Hanoi Computer Graphics Project using OpenGL. This very simple puzzles based on the no of discs and the towers. The objects, rule were discussed in the previous Tower of Hanoi OpenGL project, in which used CONE and TORUS. Similarly in this Computer Graphics Project we are using these same primitive 3d objects.


This has following feature -
  • It has better shaped disc, look more realistic.
  • The options in this Computer graphics Project in C allows to set different backgrounds.
  • The Tower of Hanoi Project has more interaction than previous one as it's allows to have step by step solving the problem. First at the beginning you need to input no of disc. Right Click to Get the options menu - Click on Solve to start solving. Continues to till the problem automatically get solved.
Future scope - It can allow to changes the disc from one to other by human's choice and not though some algorithm. Also put levels with no of disc as the base. As the level increases the disc count also need to get increment. We may start level 1 or 0 with 3 discs.

All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single hand can't help student reach that much of projects.


""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

No comments:

Post a Comment