CommonsGame icon indicating copy to clipboard operation
CommonsGame copied to clipboard

An OpenAI gym multi-agent environment implementing the Commons Game proposed in "A multi-agent reinforcement learning model of common-pool resource appropriation"

This is an OpenAI gym implementation of the Commons Game, a multi-agent environment proposed in A multi-agent reinforcement learning model of common-pool resource appropriation using pycolab as game engine.

Installation

To install cd to the directory of the repository and run pip install -e .

Usage

The file example.py contains a simple usage example where you can modify the number of agents and the size of its field of vision. To run the example cd to the directory of the repository and run python example.py. You should see something like this: