Mazegen is a python command line tool to generate and solve mazes
pip install mazegen
You can get help information by running -h
or --help
mazegen --help
This will output the following documentation
Usage: mazegen [option] [filename] [optional]
OPTIONS:
generate Generates .maze file
view Views existing .maze file as an image
solve Solves a .maze file
OPTIONAL ARGUMENTS:
-s, --save Save generated .png file
To generate a pxq maze named first.maze
, run the following command
mazegen generate first.maze
To view the output from a .maze file
mazegen view first.maze
To solve a .maze file
mazegen solve first.maze
-s
or--save
will save the generated image file
An unsolved 42x42 maze
Solution
All mazes start from the top left and end at bottom right