A package that generates mazes
Project description
mazepy
A maze library based off of the book Mazes for Programmers by Jamis Buck but with more stuff.
Installation
pip install the-maze-py
Maze Shapes Supported
2D
- Rectangular
- Polar (Circular)
- Hexagonal
- Triangular
- Arbitrary shapes with masking
3D
- Layers (Grid 3D)
- Cylindrical
- Spherical
- Cube
- Toroidal
- Möbius Strip
Generation Algorithms Supported
- Aldous Broder
- Binary Tree (not triangular)
- Ellers (not triangular)
- Fractal Tesselation (only rectangualar)
- Growing Tree
- Hunt and Kill
- Kruskals (not polar, haxagonal, or triangular)
- Origin Shift
- Prims (Simplified, True, Modified)
- Recursive Backtrack (DFS)
- Recursive Division (only Rectangular)
- Sidewinder
- Wilsons
Other Features
- Printing rectangular mazes
- Generating pngs of mazes
- Color grids based on distance
- Viewing 3d grids in 3d
- Animations of maze creation and filling with color gradient
Examples
Showing a colored maze
import mazepy as mp
grid = mp.grids.ColoredGrid(10,10, base='red', end='blue')
mp.algorithms.Ellers(grid)
grid.distances = grid[5, 5].distances() # Set starting cell (this is required)
grid.show()
Mazes of different shapes
import mazepy as mp
grid = mp.grids.PolarGrid(10)
mp.algorithms.RecursiveBacktrack(grid)
grid.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
the_maze_py-0.2.2.tar.gz
(39.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file the_maze_py-0.2.2.tar.gz.
File metadata
- Download URL: the_maze_py-0.2.2.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ab11e95c987cfad27b7da75e8d2712b07db6510c8323a4904c3f251113d3cae
|
|
| MD5 |
1fdcabaf563818ad3c7e7d95257d4797
|
|
| BLAKE2b-256 |
1a44b1c527d1fa9609f3affcce3ae5ad529ffaee4266a82f50af5446232ee0ba
|
File details
Details for the file the_maze_py-0.2.2-py3-none-any.whl.
File metadata
- Download URL: the_maze_py-0.2.2-py3-none-any.whl
- Upload date:
- Size: 60.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91d79a222cdb0844bddf482435af04553417bdb814edea26f8451df3801c1c04
|
|
| MD5 |
e0c14dd3a2e528d0f49ddbc49bddd334
|
|
| BLAKE2b-256 |
43342c1393cfd1f48d4a7a48cb3d093e773068debb2f676dc874b9ae818c1a3b
|