A simple 2D maze environment for OpenAI Gym
Project description
gym-maze
A simple 2d maze environment for Open AI Gym, where the agent needs to finds its way from the top left corner to the bottom right corner.
Action space
The agent may only choose to go up, down, left, or right ("N", "S", "W", "E"). If the way is blocked, it will remain at the same the location.
Observation space
The observation space is the (x, y) coordinate of the agent. The top left cell is (0, 0).
Reward
A reward of 1 is given when the agent reaches the goal. For every step in the maze, the agent recieves a reward of -0.1/(number of cells).
End condition
The maze is reset when the agent reaches the goal.
Maze Versions
Pre-generated mazes
- 5 cells x 5 cells: MazeEnvSample5x5
- 10 cells x 10 cells: MazeEnvSample10x10
- 25 cells x 25 cells: MazeEnvSample25x25
- 50 cells x 50 cells: MazeEnvSample50x50
- 100 cells x 100 cells: MazeEnvSample100x100
Randomly generated mazes
- 5 cells x 5 cells: MazeEnvRandom5x5
- 10 cells x 10 cells: MazeEnvRandom10x10
- 25 cells x 25 cells: MazeEnvRandom25x25
- 50 cells x 50 cells: MazeEnvRandom50x50
- 100 cells x 100 cells: MazeEnvRandom100x100
Requirements
You need Python 3.6 or 3.7 to run the script. After this, install the package.
python setup.py install
Another way to install the package is by using test.pypi.org.
pip install -i https://test.pypi.org/simple/ gym-maze-trustycoder83
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
Built Distribution
Hashes for gym-maze-trustycoder83-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c08fedbeba79b98bd690495e13c362ee5db459629df8713eb18e3c9f8d4911 |
|
MD5 | 3ff5066a35cf89f54f1043646182db0f |
|
BLAKE2b-256 | 234dac8e88e1fb0514138f253d0a32bd6052398ee05c16433285c99834b8bce1 |
Hashes for gym_maze_trustycoder83-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d35e3f573069deeff9a24a18ee07a6a4d928c68bba1050c529866c532747ff5a |
|
MD5 | 795bd87395439d31e6aad5175a3cbff1 |
|
BLAKE2b-256 | a82675af5c90264fbd8341dad945d20bae2ebd0db6546b6320684a4eca44f83e |