Saturday, November 28, 2015

Irregular maze generator (from ASCII tessellation)

I wrote a Python script that turns an ASCII tessellation into a maze.   This can generate irregularly shaped mazes (based on the ASCII template).  

Source code is at:

https://github.com/sevkeifert/text-utils/blob/master/maze-ify-ascii.py



USAGE:

   maze-ify-ascii.py -f YOUR_TEMPLATE_FILE  


EXAMPLES:

Basic grid:



Grid with holes:



Oblique


Hexagonal tesslation:



With text and graphics:



Irregular shape, with holes, multiple regions, text, and protected whitespace


No comments: