Skip to main content

Maze environments for Reinforcement Learning

Project description

# 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)
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mazenv-0.4.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

mazenv-0.4.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mazenv-0.4.2.tar.gz.

File metadata

  • Download URL: mazenv-0.4.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mazenv-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7bb38f008a88fefa41574a3434629ecfb46a50c7e1ecf81205f2eb862f00d96c
MD5 b16ae48b79d07d322d957e8ed750cf47
BLAKE2b-256 0388e01cf0d174d62df0d6310740fe9279d399a601223fa50729e88382335401

See more details on using hashes here.

File details

Details for the file mazenv-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: mazenv-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mazenv-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed595cef3da749fe973df662220197209ad217b34d43d17becdc543467596e4
MD5 49546cd3ad0a2b88c90add89cbb396a9
BLAKE2b-256 1e7f0e74d6cf08f49017a0251dc6ca41fa59d31a8344258fbbe1d41e274d145c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page