Example training/testing scripts for our Soccer-Twos environment.
- Python 3.8
- See requirements.txt
- Clone this repository
- Install the requirements:
pip install -r requirements.txt
- Run
python example_random.py
to watch a random agent play the game - Run
python example_ray_team_vs_random.py
to train team vs team against a random agent using Ray RLLib
You may also run this environment on Colab.
To submit an agent for a Soccer-Twos competition you must follow this instructions:
- Implement a class that inherits from
soccer_twos.AgentInterface
and implements anact
method - Fill in your agent's information in the
README.md
file (agent name, authors & emails, and description) - Test your agent module as described in the next section
- Compress your agent's module folder as
.zip
.
See example_player_agent/
or example_team_agent/
module for reference.
Use the environment's rollout tool to test your module before submission:
python -m soccer_twos.watch -m example_player_agent
You may also run your agent against our pre-trained baseline (download). Extract the ceia_baseline_agent
folder to this project's folder and run:
python -m soccer_twos.watch -m1 example_player_agent -m2 ceia_baseline_agent