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.

Project Samples

Project Activity

See All Activity >

Categories

Mathematics

Follow Hanoi in Basic

Hanoi in Basic Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hanoi in Basic!

Additional Project Details

Operating Systems

Linux

Programming Language

BASIC

Related Categories

BASIC Mathematics Software

Registered

2012-11-04