mazepy
Maze classes for Python. Translated from Ruby sources in the book “Mazes for Programmers” by Jamis Buck (https://pragprog.com/book/jbmaze/mazes-for-programmers).
Includes additional code not in the aforementioned book.
Requirements
Python 3.
Install
Install latest version: pip install mazepy.
Usage
Use with other programs like this:
from mazepy import mazepy
grid=mazepy.Grid(10,20)
grid=mazepy.getRandomMaze(grid)
print("%s Maze:" % grid.algorithm)
print(grid)
and output of the above program would be similar to:
Recursive Backtracker Maze: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | | | | | | | + + + +---+---+ + + +---+---+---+ +---+ + + +---+---+ + + | | | | | | | | | | | | + +---+ +---+---+---+---+ + + +---+---+ +---+ +---+ +---+---+ + | | | | | | | | | | | + + +---+ + + + +---+---+---+---+ +---+ +---+ +---+---+ +---+ | | | | | | | | | | | | + +---+ + + + +---+---+ + +---+---+ + + +---+---+ + + + | | | | | | | | | | | | | | | + + + + +---+ +---+ + + + + +---+ +---+---+ + + + + | | | | | | | | | | | | | | | | | + + +---+---+ + + +---+ + + +---+ +---+ + +---+ +---+ + | | | | | | | | | | | + +---+---+ +---+---+ + +---+ + + +---+---+ +---+ +---+---+ + | | | | | | | | | | | +---+---+ +---+ + +---+---+ +---+ +---+---+ + + + + + +---+ | | | | | | | | | | | | | + +---+ + +---+ +---+---+ + +---+ + +---+---+ + +---+---+ + | | | | | | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
See also: mazingame (https://github.com/samisalkosuo/mazingame)
License
The MIT license for my own code.
Original Ruby code:
#--- # Excerpted from "Mazes for Programmers", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/jbmaze for more book information. #---
Metadata
Release files for mazepy 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mazepy-0.3.tar.gz | 7.8 kB | Without provenance | Details for mazepy-0.3.tar.gz |
Release files / mazepy-0.3.tar.gz
| Download URL | mazepy-0.3.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac81531fc5f12071eea0c17e7ea5e3f03d33e10fd1f3039ef6ae7261126c497
|
|
BLAKE2b-256 checksum How to use checksums |
c5c237a814dd9e44d601ee63f9b0a5cc714731e35fd8b84f2d528e43c76c9963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mazepy 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.