This program is written in BWBasic, the version provided with DOSEMU, the DOS emulator. In this version of BASIC, you use GOSUB to call a procedure, and there are no local variables. So I used arrays to allocate memory for stacks, from where the "local variables" are taken.
From this code you can learn how recursion and functions with dynamic local variables work.
Categories
MathematicsFollow Hanoi in Basic
Other Useful Business Software
Outgrown Windows Task Scheduler?
Windows Task Scheduler wasn't built for complex, cross-platform automation. Get a free diagnostic that shows exactly where things are failing and provides remediation recommendations. Interactive HTML report delivered in minutes.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Hanoi in Basic!