Create polygon-tesselation mazes from a variety of sources.
This utility converts several different kinds of inputs into mazes.
- Aspect ratio (height / width) of a rectangular maze
- String - convert the content of the string into a maze / mazes
- Image - convert the dark parts of an image into a maze / mazes
- Complexity - adjust the difficulty
- Font - use your own font when making a String maze (especially for unicode strings)
- Shape - explicitly choose the type of tesselation used in the maze
polymaze should work with Py2 or Py3.
pip install polymaze
If you get the error decoder zip not available when using it, then probably PILLOW did not install completely. Try to upgrade or reinstall PILLOW and make sure it says png support was installed.
To make a generic rectangular maze, at the command line:
To see all options:
For example, to make a string into a maze with some extra options:
polymaze --string "Happy Birthday!" --complexity 10 --shape Polycat
Everything above assumes the command line entry point (named polymaze) works after installation. If not, then you will need to replace “polymaze …” with
python /your_install_location/polymaze/cli.py ...
Please see demo/demo.py for examples of how to use the components.
The primary components are PolyGrid (the geometric core of the whole package), and PolyMaze which converts a PolyGrid into a maze.
If anyone is interested, I can document how to specify new tessellations.
Background and Feedback:
I developed this to regain some of my basic trigonometry skills which I have lost over the years.
If you find this useful or have any feedback, please let me know! Specifically I have only tested this on Windows so please make an issue if it doesn’t work in Linux, etc.
MIT. See LICENSE
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|polymaze-0.5.4-py2.py3-none-any.whl (143.9 kB) Copy SHA256 hash SHA256||Wheel||2.7||Jun 6, 2014|
|polymaze-0.5.4.zip (146.5 kB) Copy SHA256 hash SHA256||Source||None||Jun 6, 2014|