Skip to main content

Muti-agent gymnasium gridworld environments

Project description

gym-multigrid

This repo is intended to be a lightweight, multi-agent, gridworld environment. It was originally based on this multigrid environment, but has since been heavily modified and developed beyond the scope of the original environment. Please cite this respository as well as the original repository if you use this environment in any of your projects:

@misc{multigrid,
  title = {Tran Research Group Gridworld Environment},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/Tran-Research-Group/trg-multigrid}},
}

Getting started

To modify or contribute to this project, install gym-multigrid from source. This repo uses poetry library dependency management. To install the dependencies for this project run:

git clone https://github.com/Tran-Research-Group/gym-multigrid.git
cd gym-multigrid
poetry install

Included environments

Capture-the-Flag (CtF)

Collect Game

Collect Game Respawn

Attribute Description
Action Space Discrete(4)
Observation Space np.array of shape grid.width x grid.height
Observation Encoding (OBJECT_IDX, COLOR_IDX, STATE)
Reward (0, 1)
Number of Agents 2
Termination Condition None
Truncation Steps 50
Creation gymnasium.make("multigrid-collect-respawn-clustered-v0")

Agents move around the grid to collect objects. The object respawns in a random location after being collected.

Maze

Wildfire

Extending multigrid

Please see this guide for creating a custom multigrid environment. See CONTRIBUTING.md for our code guidelines if you are interested in adding your environment to this repo.

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

gym_multigrid-1.0.0.tar.gz (32.8 kB view hashes)

Uploaded Source

Built Distribution

gym_multigrid-1.0.0-py3-none-any.whl (40.8 kB view hashes)

Uploaded Python 3

Supported by

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