MARL2DFootball is a lightweight 2D football environment that can be used to training multi-agent reinforcement learning (MARL) systems. The environment provides partial observations to each player and can run anything from 1 vs 1 up to 11 vs 11 player matches.
Top view of the 2D football environment for 22 players and 4 players on the field respectively.
Below is gameplay footage of a team of MARL agents (trained for 35 hours) in blue playing against a handcrafted opponent in red.
This installation was tested on an Linux (Ubuntu 21.04) machine.
Run the below commands to setup this football environment and run the main example.
make build_env # Setup the virtual environment.
make run # Run the main example file.
You can replace the example with your own custom python file by editing the makefile.