Skip to main content

Maze environments for Reinforcement Learning

Project description

# mazenv-py

A Python port of [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))

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
mazenv-0.4.2-py3-none-any.whl (8.5 kB) Copy SHA256 hash SHA256 Wheel py3
mazenv-0.4.2.tar.gz (6.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page