Repository for competitive multi-agent environments
Switch branches/tags
Nothing to show
Clone or download

Competitive Multi-Agent Environments

This repository contains the environments for the paper Emergent Complexity via Multi-agent Competition


Use pip install -r requirements.txt to install dependencies. If you haven't used MuJoCo before, please refer to the installation guide. The code has been tested with the following dependencies:

Installing Package

After installing all dependencies, make sure gym works with support for MuJoCo environments. Next install gym-compete package as:

cd gym-compete
pip install -e .

Check install is successful by coming out of the directory and trying import gym_compete in python console. Some users might require a sudo pip install.

Trying the environments

Agent policies are provided for the various environments in folder agent-zoo. To see a demo of all the environments do:

bash all

To instead try a single environment use:

bash <task>

where <task> is one of: run-to-goal-humans, run-to-goal-ants, you-shall-not-pass, sumo-ants, sumo-humans and kick-and-defend