-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ba3622
commit 8775729
Showing
6 changed files
with
47 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0", "wheel"] | ||
requires = ["setuptools >= 61.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "mazeforge" | ||
version = "0.1.0" | ||
description = "Simple and fast generation of mazes in Python" | ||
description = "Simple and fast generation of mazes" | ||
readme = "README.md" | ||
authors = [{ name = "Oskar Meyenburg", email = "[email protected]" }] | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
|
@@ -19,38 +20,36 @@ keywords = ["labyrinth", "maze", "pymaze", "generation", "generate", "solve"] | |
dependencies = ["numpy"] | ||
requires-python = ">=3.7" | ||
|
||
[project.optional-dependencies] | ||
build = ["build", "twine"] | ||
dev = ["black", "bumpver", "isort", "mypy", "pytest"] | ||
[project.optional-dependencies] | ||
build = ["build", "twine"] | ||
dev = ["black", "bumpver", "isort", "mypy", "pytest"] | ||
|
||
# This would create the terminal command "mazeforge" | ||
#[project.scripts] | ||
#mazeforge = "mazeforge.__main__:main" | ||
# This would create the terminal command "mazeforge" | ||
#[project.scripts] | ||
#mazeforge = "mazeforge.__main__:main" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/oskarmeyenburg/mazeforge" | ||
repository = "https://github.com/oskarmeyenburg/mazeforge" | ||
documentation = "https://github.com/oskarmeyenburg/mazeforge/blob/main/README.md" | ||
[project.urls] | ||
repository = "https://github.com/oskarmeyenburg/mazeforge" | ||
documentation = "https://github.com/oskarmeyenburg/mazeforge/blob/main/README.md" | ||
|
||
[tool.bumpver] | ||
current_version = "0.1.0" | ||
version_pattern = "MAJOR.MINOR.PATCH" | ||
commit_message = "bump version {old_version} -> {new_version}" | ||
commit = true | ||
tag = true | ||
push = false | ||
|
||
[tool.bumpver.file_patterns] | ||
"pyproject.toml" = [ | ||
'current_version = "{version}"', | ||
'version = "{version}"', | ||
] | ||
"src/mazeforge/__init__.py" = ["{version}"] | ||
"src/mazeforge/__main__.py" = ["- mazeforge v{version}"] | ||
commit = true | ||
tag = true | ||
push = false | ||
|
||
[tool.bumpver.file_patterns] | ||
"pyproject.toml" = [ | ||
'current_version = "{version}"', | ||
'version = "{version}"', | ||
] | ||
"src/mazeforge/__init__.py" = ["{version}"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
import_heading_stdlib = "Standard library imports" | ||
profile = "black" | ||
import_heading_stdlib = "Standard library imports" | ||
import_heading_thirdparty = "Third party imports" | ||
import_heading_firstparty = "Reader imports" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Metadata-Version: 2.1 | ||
Name: mazeforge | ||
Version: 0.1.0 | ||
Summary: Simple and fast generation of mazes in Python | ||
Summary: Simple and fast generation of mazes | ||
Author-email: Oskar Meyenburg <[email protected]> | ||
License: MIT License | ||
|
||
|
@@ -25,10 +25,10 @@ License: MIT License | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
Project-URL: Homepage, https://github.com/oskarmeyenburg/mazeforge | ||
Project-URL: repository, https://github.com/oskarmeyenburg/mazeforge | ||
Project-URL: documentation, https://github.com/oskarmeyenburg/mazeforge/blob/main/README.md | ||
Keywords: labyrinth,maze,pymaze,generation,generate,solve | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Operating System :: OS Independent | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python | ||
|
@@ -48,15 +48,19 @@ Requires-Dist: mypy; extra == "dev" | |
Requires-Dist: pytest; extra == "dev" | ||
|
||
# MazeForge | ||
|
||
Generation of mazes in Python | ||
|
||
## Installation | ||
|
||
You can install **MazeForge** from [PyPI](https://pypi.org/project/mazeforge/) by running the following in your terminal.<br> | ||
`python -m pip install mazeforge` | ||
<br> | ||
|
||
MazeForge is supported on Python 3.7 and above. | ||
|
||
## How to use | ||
|
||
```python | ||
>>> import mazeforge | ||
>>> mazeforge.generate(3, 3) | ||
|
@@ -70,5 +74,7 @@ array([[1., 1., 1., 1., 1., 1., 1.], | |
``` | ||
|
||
## Documentation | ||
|
||
### mazeforge.generate | ||
|
||
`mazeforge.generate` generates a perfect maze. This means that any two cells are connected by one single unique path. The function returns 2d numpy array. Walls are represented as a `1` and corridor as a `0`. The maze is generated using the prim's algorithm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters