Skip to main content

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.

Metadata

Release files for gym-multigrid 1.0.0

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

Source distribution (sdist)

Source distribution for gym-multigrid 1.0.0
File Size Uploaded Provenance Actions
gym_multigrid-1.0.0.tar.gz 32.8 kB Without provenance Details for gym_multigrid-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-multigrid 1.0.0
File Interpreter ABI Platform Actions
gym_multigrid-1.0.0-py3-none-any.whl Python 3 none any Details for gym_multigrid-1.0.0-py3-none-any.whl

Total release size: 73.6 kB

Release files / gym_multigrid-1.0.0.tar.gz

Download URL gym_multigrid-1.0.0.tar.gz
Size 32.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dcd0e5889f362e23d53646024d264d0526f5f4da2151839c36f8542656ad4784
BLAKE2b-256 checksum
How to use checksums
2159ea0d6c2d1f15776d5837ba7411cab0ce6ae6c72f45a237f8c36f838917a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.8.18 Darwin/22.6.0

Release files / gym_multigrid-1.0.0-py3-none-any.whl

Download URL gym_multigrid-1.0.0-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2b6d7371edd65460db7fd76efd872f0656c8fe0b4422d4663ff0ece22557f5f
BLAKE2b-256 checksum
How to use checksums
fee3c99c89521c918d647911d83303e3ad5d21db59db9807265621288e28010d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.8.18 Darwin/22.6.0

Security for gym-multigrid 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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