Skip to content

Example training/testing scripts for our soccer-twos-env.

Notifications You must be signed in to change notification settings

bryanoliveira/soccer-twos-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Soccer-Twos Starter Kit

Example training/testing scripts for our Soccer-Twos environment.

Requirements

Usage

  • 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.

Agent Packaging

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 an act 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.

Testing/Evaluating

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

About

Example training/testing scripts for our soccer-twos-env.

Topics

Resources

Stars

Watchers

Forks