Thought this would make a relatively simple demo of what you can do with BASIC. It loads some sprites into memory and draws some pegs and then animates the solution for the 8-disc Towers of Hanoi puzzle. The solution part uses recursion via global arrays functioning as "stacks" for each "local" variable.
Try It Now!
Towers of Hanoi in BASIC
-
- Posts: 20
- Joined: Sat Nov 26, 2022 6:24 pm
Towers of Hanoi in BASIC
Last edited by MarkTheStrange on Wed Apr 17, 2024 9:21 pm, edited 1 time in total.
Re: Towers of Hanoi in BASIC
Ah, an olde but a goodie. I remember seeing that program back in the '70s when I was using a Decwriter.