PythoCup is a python-based simple simulator to study several aspects of the 2D RoboCup scenario without the hassle of understanding the detailed synchronization and command model of the standard 2D simulator. It simplifies many aspects, does not include turns, currently does not implement noise, outs (field boundaries) and many other features, and has been developed on-the-fly for the purpose of an quick-access to 2D RoboCup scenarios.
You'll need python 3.5.3 or later. You can find out your python version with the command python --version or python3 --version.
Clone this code
Create a folder named, e.g., PythoCup and clone the code:
git clone firstname.lastname@example.org:boldhearts/pythocup.git
Create a virtual environment
Python's virtual environments come in handy for encapsulating dependencies from global installed packages. The following command uses the venv module and creates a folder named pyenv-pythocup with the environment:
python3 -m venv pyenv-pythocup
You will need to source the environment in the terminal you're working in:
If successful, the prompt of the terminal will have a prefix with the given name of the virtual environment (i.e. pyenv-pythocup). You can now install all requirments with the following command:
pip3 install -r requirements.txt
Test if Pygame is working with running:
python3 -m pygame.examples.aliens
Python version 3
If your system doesn't have Python's version 3, you can install it the following way:
On older systems, you may have to install python version 3 like this:
You can read about used classes in the wiki. There is also a set of exercises to begin with.
You're welcome to contribute. Please have a look at Gitlab's workflow first. It is helpful if each commit addresses a specific feature before requesting a merge. You can achieve this with, e.g., squashing the commits of your working copy.