Skip to main content
# mazenv-py

A Python port of [unixpickle/mazenv](https://github.com/unixpickle/mazenv) that uses OpenAI Gym.

# Installation

You can install mazenv with pip:

```
pip install mazenv
```

# Usage

You can generate a random 8x8 maze like this:

```
import mazenv

maze = mazenv.prim((8, 8))
print(maze)
```

You can create a Gym environment out of your maze like this:

```
env = mazenv.Env(maze)
```

If you want to restrict the observations to a 5x5 grid centered around the current position, you can do:

```
restricted_env = mazenv.HorizonLimit(env, horizon=2)
```


Release files for mazenv 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mazenv 0.4.2
File Size Uploaded
mazenv-0.4.2.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mazenv 0.4.2
File Interpreter ABI Platform
mazenv-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / mazenv-0.4.2.tar.gz

Download URL mazenv-0.4.2.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7bb38f008a88fefa41574a3434629ecfb46a50c7e1ecf81205f2eb862f00d96c
BLAKE2b-256 checksum
How to use checksums
0388e01cf0d174d62df0d6310740fe9279d399a601223fa50729e88382335401
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3

Release files / mazenv-0.4.2-py3-none-any.whl

Download URL mazenv-0.4.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ed595cef3da749fe973df662220197209ad217b34d43d17becdc543467596e4
BLAKE2b-256 checksum
How to use checksums
1e7f0e74d6cf08f49017a0251dc6ca41fa59d31a8344258fbbe1d41e274d145c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page