Beta test for Towers of Hanoi, brainteaser puzzle.
This program will solve the game for you with a recursive algorithm, displaying all the moves step by step.
There are many videos on youtube showing the brainteaser.
Im not taking credit for the original algorithm, it is converted from a python snipet, i found during the recursive lecture on MiTx 6.00x at Edx.org.
With a bit of tweaking, i was able to put it into glbasic in about 10 minutes.
I dont actually have the puzzle, so i dont know if this is properly working, but it looks like the same output from python.
If you have the puzzle....try it with an even number of stacks, then an odd number...
Test:
Try with 4 stacks, then 5 stacks.
Enjoy, have fun!
- regards Neil
[attachment deleted by admin]