Like the others, this one doesn't find a path. And like the others it randomly puts walls and exits. But I think this is my best so far. Check out the picture to see what kind of maze it makes. Since it doesn't find a path, maybe 1/4 or so of them doesn't work, so just press the Space Bar to make a new one. I also added clipboard to it so people can copy it using the C key (not CTRL C, just C) and then paste it into their favorite graphics program to save or print. Like my other ones, it's a white background with black walls. I made a similar one I think last Summer using circles instead of boxes, but this one looks more like a regular maze.
'Maze Generator 8 - by SierraKen
'Made on January 16, 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)