Metadata-Version: 2.1
Name: mmaze
Version: 0.0.3
Summary: Generating and solving maze
Home-page: https://github.com/MorvanZhou/mmaze
Author: MorvanZhou
Author-email: mofanpy@hotmail.com
Project-URL: Bug Tracker, https://github.com/MorvanZhou/mmaze/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# MMaze

A simple python maze generator and solver.


## Simple usage

Generating a maze with specific width and height. Print on screen directly.

```python
import mmaze

m = mmaze.generate(width=3, height=3)
print(m)

"""
#######
# #   #
# ### #
#     #
# #####
#     #
#######
"""
```

Plot the maze to image.

```python
m = mmaze.generate(width=3, height=3)
m.plot()
```

<img src="https://raw.githubusercontent.com/MorvanZhou/mmaze/master/demo33.png" alt="drawing" width="180"/>

Get solution and plot on screen:

```python
m = mmaze.generate(width=10, height=10)
solutions = m.sovle(start=(0, 0), end=(9, 9))
m.plot(solution=solutions[0])
```

<img src="https://raw.githubusercontent.com/MorvanZhou/mmaze/master/demo.png" alt="drawing" width="180"/>


## Demo

Demo can be found in test file: [tests](https://github.com/MorvanZhou/mmaze/blob/master/tests/mmaze_test.py)

## Install

```
pip install mmaze
```

## Download or fork
Download [link](https://github.com/MorvanZhou/mmaze/archive/master.zip)

Fork this repo:
```
$ git clone https://github.com/MorvanZhou/mmaze.git
```
