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 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.1.0.tar.gz
(38.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.1.0.tar.gz.
File metadata
- Download URL: the_maze_py-0.1.0.tar.gz
- Upload date:
- Size: 38.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 |
4cc84630c91958c45a58c03bbd2155a114ce9ef539e2abd7673412694c7078e3
|
|
| MD5 |
14d91decf5e22342f646ae219b10ba29
|
|
| BLAKE2b-256 |
1539ce50229b040676cc1580eba85701a060b30731c6b82cfd2bf4741e3bd191
|
File details
Details for the file the_maze_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: the_maze_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 59.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 |
42645a1ed5efc27f2c4326a8a9df733652127a19c13610bedc2d54d389b05402
|
|
| MD5 |
c9e0a01c1e0a5e5edea1b9ad25d47d67
|
|
| BLAKE2b-256 |
d7815b92ab6a466c1c5d9a4689009d768f51b128a992fadb6653cc98d66c3032
|