Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
exploring_amazing.bas [2023/05/19 21:22] robertexploring_amazing.bas [2024/10/19 22:01] (current) – typo fix robert
Line 12: Line 12:
  
 AMAZING.BAS AMAZING.BAS
-<code basic>+<code blitzbasic>
 10 PRINT TAB(28);"AMAZING PROGRAM" 10 PRINT TAB(28);"AMAZING PROGRAM"
 20 PRINT TAB(15);"CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY" 20 PRINT TAB(15);"CREATIVE COMPUTING  MORRISTOWN, NEW JERSEY"
Line 175: Line 175:
 Compare this original code below to the spaghetti code version above. Compare this original code below to the spaghetti code version above.
  
-<code basic>+<code blitzbasic>
 100 ' NAME:  AMAZING*** 100 ' NAME:  AMAZING***
 105 ' 105 '
Line 335: Line 335:
 Have fun with it on your Color Computer family machine. Have fun with it on your Color Computer family machine.
  
-<code basic>+<code blitzbasic>
 100 REM  NAME:  AMAZING*** 100 REM  NAME:  AMAZING***
 105 REM  105 REM 
Line 502: Line 502:
 To knock down the wall to the left of a square, the generator moves its current column position 1 to the left, updates that square with the next count of visited squares then knocks down the right-hand wall. To knock down the wall to the left of a square, the generator moves its current column position 1 to the left, updates that square with the next count of visited squares then knocks down the right-hand wall.
  
-To down down the wall in the up (or north) direction, the generator moves its current row position 1 row up, then knocks down the "bottom" wall of that square.+To knock down the wall in the up (or north) direction, the generator moves its current row position 1 row up, then knocks down the "bottom" wall of that square.
  
   * 0 this square has right AND bottom walls   * 0 this square has right AND bottom walls
Line 511: Line 511:
 The other array tracks whether a room has been ""walked" or "explored" - each time a maze room is explored, it is given a unique integer number from an increating counter.  The other array tracks whether a room has been ""walked" or "explored" - each time a maze room is explored, it is given a unique integer number from an increating counter. 
  
-The right hand annotated example maze below shows the increating count for each square.+The right hand annotated example maze below shows the increasing count for each square.
  
 If the current row and column of the generator each a dead end or the exit and have no more directions to "dig", then it will stop, rescan the array looking for any unused room next to an already dug room and start digging again from there. If the current row and column of the generator each a dead end or the exit and have no more directions to "dig", then it will stop, rescan the array looking for any unused room next to an already dug room and start digging again from there.