Three vectorized mix-motivate MARL environments, including Coin Game, Gathering, and Harvest. Their implementations comply with the Gym API.
coin_game.py: Vectorized implementation of Coin Game, which is proposed by Lerer and Peysakhovich.gathering.py: Vectorized implementation of Gathering, which is proposed by Leibo et al..harvest.py: Vectorized implementation of Simple Harvest, which is proposed by Willis and Luck.main.ipynb: Providing some simple examples on how to use these environments.
Just install the latest version of pytorch (tested on pytorch 2.1.2).
- The implementation of Coin Game comes from https://github.com/luchris429/model-free-opponent-shaping. Referring to Coin Game, we implement Gathering and Harvest.
- Hao Li has fixed a large number of bugs.