https://github.com/timf34/harvest-commonsgames
https://github.com/timf34/harvest-commonsgames
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timf34/harvest-commonsgames
- Owner: timf34
- License: mit
- Created: 2022-06-28T10:00:28.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T15:34:43.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T21:25:43.740Z (over 1 year ago)
- Language: Python
- Size: 383 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Newest update
Setting up the environment...
In WSL/ Linux, run:
```. wsl_venv/bin/activate```
In Windows, run:
```. wsl_venv/Scripts/activate```
### Update:
I merged the files over from `ppo-harvest`... (did I??? Coming back to this now I can't see it)
I also changed the gym `regiser` function so that its directly within the
scripts that run. For some reason I was getting path issues potentially,
I'm not too sure tbh. But its working now!
I'm not sure which environment I was even using for running this! And its taking me a minute to see which one now!
Label what environment I am using and everything esle I need to get stuff going
-----
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](https://arxiv.org/abs/1707.06600) using [pycolab](https://github.com/deepmind/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:
