MCTF Software Setup and Installation
MCTF uses the Pyquaticus game simulation environment. Pyquaticus is an open-source, Python-based library developed at MIT Lincoln Laboratory that enables multi-agent training via reinforcement learning (RL) using a PettingZoo/Gymnasium environment. It supports the RLlib deep RL library and can integrate with other libraries such as Stable-Baselines or custom RL implementations. Pyquaticus also supports heuristic-based agents and manual keyboard control of agents.
Steps to Download and Install Pyquaticus
- Download Pyquaticus from the GitHub repository.
git checkout mctf2026(NOTE mctf2026 is the branch that will be used for the 2026 competition not main)- Follow the instructions in the
README.mdfile. - Set up a Python virtual environment using one of the methods below.
- Train your first RL agents using the Getting Started guide.
Setting up a Python Virtual Environment
Option 1: Using Miniconda (Recommended)
- Install Miniconda from here.
- Navigate into the cloned Pyquaticus repository.
-
Run:
./setup-conda-env.sh light
./setup-conda-env.sh full(recommended, includes RLlib)
Option 2: Using Python Virtual Environment
- Install Python 3.10.
- Create a virtual environment:
python3.10 -m venv <envname> -
Install Pyquaticus:
pip install -e .[torch,ray](full)
orpip install -e .(light)
Setting Up on Windows
- Install Miniconda from here.
- Clone the Pyquaticus GitHub repository.
- Navigate into the repository.
git checkout mctf2026(NOTE mctf2026 is the branch that will be used for the 2026 competition not main)- Remove line 56 (
pymoos==2022.1) frompyproject.toml. -
Run:
./setup-conda-env.sh light(WSL)
or
./setup-conda-env.sh full(includes RLlib) -
Or install manually:
pip install -e .[torch,ray]
or
pip install -e .