Skip to main content

Create polygon-tesselation mazes from a variety of sources.

Project description

PolyMaze - Create mazes from a variety of sources

This utility converts several different kinds of inputs into mazes.

Allowed Inputs:

  • 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

Options:

  • Complexity - adjust the difficulty

  • Font - use your own font (especially for unicode strings)

  • Shape - explicitly choose the type of tesselation used in the maze

http://raw.githubusercontent.com/kobejohn/polymaze/master/demo/Globe%20%28Polycat%29.png

Installation:

polymaze should work with Py2 or Py3.

pip install polymaze

If you get the error decoder zip not available when using it, then probably PIL/PILLOW did not install completely. You can try:

pip install -use-wheel pillow

Commandline Usage:

To make a generic rectangular maze:

python polymaze.py

To see all options:

python polymaze.py -h

For example, to make a string into a maze with some extra options:

python polymaze.py –string “Happy Birthday!” –complexity 10 –shape Polycat

Library Usage:

Please see demo/demo.py for examples of how to use the different parts.

The primary components are PolyGrid (the geometric core of the whole package), and PolyMaze which converts a PolyGrid into a maze.

Extension:

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.

License:

MIT. See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polymaze-0.5.1.zip (144.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polymaze-0.5.1-py2.py3-none-any.whl (141.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file polymaze-0.5.1.zip.

File metadata

  • Download URL: polymaze-0.5.1.zip
  • Upload date:
  • Size: 144.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for polymaze-0.5.1.zip
Algorithm Hash digest
SHA256 b5ee75d769eead2bf540e8d6ebbba89896f7052815e297e8656fb10397b01dd6
MD5 98d9c64297a1eedae82a51f08354a046
BLAKE2b-256 3989bf630d7fdedff1195c94cafe9aa4f98d3b92a49f359a60239c2b36f26ded

See more details on using hashes here.

File details

Details for the file polymaze-0.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for polymaze-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 65ca10ad422449065cfab45488170de3942d85ef2ab413d2a84adae6d6cf8750
MD5 3aeddc5f0f3ecb50db2b48c836950559
BLAKE2b-256 e1f9064fa7c171fb98d4447e689a3b5004944641c05e47696ce93f0c1dd48eca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page