'Maze Generator 8 - by SierraKen
'Made on January 17, 2021.
'Not every maze works so use the Space Bar to make ones that do.
'Press C to copy to clipboard so you can paste it into your favorite graphics program.
'From there you can save it or print it to your printer.
'-------------------------------------------------------------------------------------
'This little program doesn't find a path, instead it randomly chooses areas to make walls and exits after making a bunch of boxes.
'After trial and error I believe this is as good, or almost as good as it gets for this type of maze.
_TITLE "Space Bar for new maze. C = Copy to clipboard. Not every maze works. " start:
LINE (300 - boxes
, 300 - boxes
)-(300 + boxes
, 300 + boxes
), _RGB32(0, 0, 0), B
LINE (lx
+ 25, ly
)-(lx
+ 25, ly
+ 25), _RGB32(255, 255, 255) LINE (lx
, ly
+ 25)-(lx
+ 25, ly
+ 25), _RGB32(255, 255, 255) 'Make more exits.
LINE (lx
+ 25, ly
)-(lx
+ 25, ly
+ 25), _RGB32(255, 255, 255) LINE (lx
, ly
+ 25)-(lx
+ 25, ly
+ 25), _RGB32(255, 255, 255)
'LINE (250, 250)-(350, 350), _RGB32(255, 0, 0), B
'LINE (225, 225)-(375, 375), _RGB32(0, 0, 255), B
'LINE (200, 200)-(400, 400), _RGB32(0, 255, 0), B
'LINE (175, 175)-(425, 425), _RGB32(0, 255, 255), B