Generating and solving maze
Project description
MMaze
A simple python maze generator and solver.
Simple usage
Generating a maze with specific width and height. Print on screen directly.
import mmaze
m = mmaze.generate(width=3, height=3)
print(m)
"""
#######
# # #
# ### #
# #
# #####
# #
#######
"""
Plot the maze to image.
m = mmaze.generate(width=3, height=3)
m.plot()
Get solution and plot on screen:
m = mmaze.generate(width=10, height=10)
solutions = m.sovle(start=(0, 0), end=(9, 9))
m.plot(solution=solutions[0])
Demo
Demo can be found in test file: tests
Install
pip install mmaze
Download or fork
Download link
Fork this repo:
$ git clone https://github.com/MorvanZhou/mmaze.git
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
mmaze-0.0.3.tar.gz
(15.5 kB
view details)
Built Distribution
mmaze-0.0.3-py3-none-any.whl
(21.4 kB
view details)
File details
Details for the file mmaze-0.0.3.tar.gz
.
File metadata
- Download URL: mmaze-0.0.3.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6981cc45b0b4a351fef958f3aa56ee5ffb2d22ff8cd0537ec34c9a524ea377fd |
|
MD5 | 5f8e86048afb09b5cefda2bf5a0bd09a |
|
BLAKE2b-256 | 83f00d7d00e79c4b6b3f0d0204548da4e588b6822dd03fd40824b8f1084197c1 |
File details
Details for the file mmaze-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mmaze-0.0.3-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f43469de5c4d9f1c19f45ebbf407582ff4c5556241c325f797b6eec0efeeaec |
|
MD5 | ae4531575b029dddbea61d3aab33e635 |
|
BLAKE2b-256 | 9d3d9d81d160ad1d913a5f0ae18861c3f39fdedbf8866ac1d400ffd4f8d666f7 |