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
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("gym_multigrid.envs:CollectGameRespawn") |
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
Release history Release notifications | RSS feed
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_multigrid-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d37d096b8e14979c7c576a6e15ebf9c1352b17349103e36a5d7e47675f5837cc |
|
MD5 | b3c62c0259c58f0a8e5385c42cb9a04d |
|
BLAKE2b-256 | 7e0b6d422ab7e032761f7142763a39999136f9e300de7a87b9cba052c03e8131 |