Maze generator with crossings.
Installation
pip3 install maze
Or install from source:
python3 setup.py install
To export a 20 by 30 maze SVG and a solution SVG, run:
maze svg maze.svg -s maze-solved.svg -W 23 -H 30
To using python3 directly, change into the directory with the file maze.py
and run:
python3 maze.py svg maze.svg -s maze-solved.svg -W 23 -H 30
will produce:
maze.svg | maze-solved.svg |
---|---|
Using the -S
option will produce a maze with no curves e.g.:
maze svg maze-straight.svg -s maze-straight-solved.svg -W 23 -H 30
maze.svg | maze-solved.svg |
---|---|
To generate PDF (currenlty this options doesn't allow solutions to be generated)
maze pdf my_maze.pdf
will produce a pdf.
Run maze
without any arguments to see all options.