Welcome to Two Player Soccer, a zero-sum game where two agents compete against each other to score the most goals in a soccer setting.
- At the start of the game, one of the agents is randomly given the ball.
- The goal of the agent with the ball is to move it to the opposing team's goal post and score a point.
- If the agent with the ball comes in contact with the other agent, the ball is transferred to the other agent. The agent that loses the ball receives a penalty.
To run the code, make sure you have the required dependencies installed. You can install them by running:
pip install -r requirements.txt
Then, run the main script using:
python main.py
The code has the following dependencies:
- os
- glob
- time
- datetime
- torch
- gym
- roboschool
- pybullet_envs
- numpy
Make sure you have these packages installed before running the code. You can install them using pip.
I hope you enjoy playing Two Player Soccer! Let me know if you have any other questions.
https://youtu.be/gqX8J38tESw?t=2999
https://arxiv.org/abs/1707.06347
https://openai.com/blog/openai-baselines-ppo/
https://www.youtube.com/watch?t=14m1s&v=gqX8J38tESw&feature=youtu.be