Also, do you have a set number of disks or based on difficulty, user-input,etc? And how the algorithm would work (for the game logic): You have 3 vectors, 1 for each rod.
If you are indeed going for graphics, then I suggest.
Sinuosidades de un itinerario nunca interrumpidoby Carlos Garc. Tower of hanoi solution in c++ with graphics. > This C++ program is to solve the towers of hanoi. Do you want graphics in your game?ĭec 21, 2006. Do you want to be able to play the game yourself or make an algorithm to play it? Also, are you talking about std::stack? It's not really necessary, a vector (STL) would do just fine. (but the code editor is more consistent and less buggy). If you are on a mobile device, or prefer to use BBCode, you can use // Your code here // It will be syntax highlighted, though not necessarily corectly. To add code tags, click the button on the editor toolbar, then enter your code in the code editor that appears. Welcome to the Programming and Software Design Section, When asking for help with programming issues, please use the code tags to enclose your code, it makes things much more easily readable for the people trying to help you, thus improving your chances of actually getting help.