Skip to main content

maze-world

Random maze environments with different size and complexity for reinforcement learning and planning research. This is in-particular to investigate generalization and planning ability in dynamically changing environment.

Python package Python Version Open In Colab

Disclaimer: This project is largely a amalgam of references mentioned here.

Installation

  • Using PyPI:

    pip install maze-world
    
  • Directly from source (recommended):

    git clone https://github.com/koulanurag/maze-world.git
    cd maze-world
    pip install -e .
    

Environments Zoo!

RandomMaze-11x11-v0 RandomMaze-21x21-v0 RandomMaze-31x31-v0 RandomMaze-101x101-v0
RandomMAze-11x11-v0.gif RandomMAze-21x21-v0.gif RandomMAze-11x11-v0.gif RandomMAze-21x21-v0.gif

See all here.

Quick-Start:

import gymnasium as gym

env = gym.make("maze_world:RandomMaze-11x11-v0", render_mode="human")
terminated, truncated = False, False
observation, info = env.reset(seed=0, options={})
episode_score = 0.

while not (terminated or truncated):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)
    episode_score += reward

env.close()

See entire quick-start guide here.

Testing:

  • Install: pip install -e ".[test]"
  • Run: pytest

Development:

If you would like to develop it further; begin by installing following:

pip install -e ".[develop]"

References:

  1. Gym-Maze
  2. Mazelab
  3. Custom Gym environment based out of gymnasium
  4. Wilson Maze Generator

Metadata

Release files for maze-world 0.0.1

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

Source distribution (sdist)

Source distribution for maze-world 0.0.1
File Size Uploaded
maze-world-0.0.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maze-world 0.0.1
File Interpreter ABI Platform
maze_world-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.0 kB

Release files / maze-world-0.0.1.tar.gz

Download URL maze-world-0.0.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
643f1fe3eeb7d34c9c05902e42f9ca5d1d4502d87ddd33932afab90e53ff6eed
BLAKE2b-256 checksum
How to use checksums
74666dc7925cf381a4aeae60326409750b8936f2e9974f6a6da6c04b3e6ec66a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / maze_world-0.0.1-py3-none-any.whl

Download URL maze_world-0.0.1-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ca48f3b06f0660ca634ff2b842b025259f080eb6e20a7b4154e8b08f688b024
BLAKE2b-256 checksum
How to use checksums
18064975679ec6136124fbf99c8243365d38171dce8778a95924c1fb529599d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.0.1 This release

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