A collection of MARL gridworlds to study coordination and cooperation.
Project description
🦩🌴 MARL-Neon-Grid
A collection of MARL gridworlds to study coordination and cooperation that follows the Gymnasium interface.
Setup
Simply run:
pip install marl-neon-grid
Example
from marl_neon_grid import FoodNAgents
n_agents = 2
gw = FoodNAgents(n_agents=n_agents, n_food=8, max_steps=128, agents_must_coordinate=False)
for t in range(100): # simulate 100 episodes
observations = gw.reset()
dones = [False] * n_agents
while not all(dones):
gw.render() # render with pygame
# perform random actions
observations, rewards, dones, info = gw.step([gw.action_space.sample(),
gw.action_space.sample()])
# observations, rewards, dones are lists where each entry i belongs to agent i.
Environments
🚧 Under construction ...
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
Marl-Neon-Grid-0.1.4.3.tar.gz
(225.4 kB
view hashes)
Built Distribution
Close
Hashes for Marl_Neon_Grid-0.1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36bbda982f0512b99d2ad662f3d45db9dec45c119b9284f7ba3e373fee97e530 |
|
MD5 | e804f4726979c69cd10d649f52561a7d |
|
BLAKE2b-256 | 123c0c7de9d33abcc56b4ab54e3b03f6429c3926de45e77e31d6e5c5b81ce568 |