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!