Maze generation: Difference between revisions

Line 1,786:
 
=={{header|Commodore BASIC}}==
Written in Commodore BASIC V2 and tested on Commodore 64 and Commodore 128 hardware. (It will also run on the unexpanded Commodore VIC-20 if you reduce the maze size to 8x8.) Due to stack size limitations in the operating systems, this examplesolution eschews recursive subroutine calls. andRecursion itis implementsaccomplished itsby ownconditional stackbranching forwithin variables.the Recursionmaze isbuild accomplished,routine afterand athe fashion,use withof branchingan withinarray-based thestack mainfor "build"data routineelements.
 
<lang BASIC>100 MS=10:REM MAZE SIZE
Anonymous user