📋 Table of contents
🚗 Deeptactics Trackmania is a student-driven project exploring Reinforcement Learning (RL) in the racing game Trackmania.
Our goal is to design, train, and visualize agents capable of completing tracks, improving over time, and eventually outperforming human players in our group.
-
Main Goal:
Build an RL system that can successfully complete a Trackmania track. -
Subgoals:
- Achieve podium placement within the group.
- Beat all group members on at least one track.
- Visualize the agent inside the game.
- Ensure all members gain hands-on RL experience.
- Understand exploration vs exploitation.
- Enable everyone to start training runs on their own PC.
- Promote collaboration: every line of code should be understood by the group.
- Document progress with a short film showing the agent’s improvement.
We aim to train RL agents using a variety of methods (PPO, DQN variants, SAC, IQN, etc.) in Trackmania.
The project emphasizes:
- Experimenting with multiple RL approaches.
- Building shared knowledge through research workshops.
- Using visualization and metrics dashboards (e.g. WandB) to monitor progress.
- Combining technical learning with social team-building.
- Environment: Gymnasium + TMRL / TMInterface
- RL Algorithms: PPO, SAC, DQN variants (including IQN)
- Experiment Tracking: Weights & Biases (WandB)
- Tooling: Git, Docker, GitHub Actions, pre-commit
- Visualization: Custom render scripts for agent playback
- PPO Paper (Schulman et al.)
- SAC Paper (Haarnoja et al.)
- IQN Paper
- TMRL Framework
- Linesight RL (YouTube)
- TMUnlimiter
- Clone repo & install dependencies (Docker setup provided).
- Configure environment (Gymnasium + Trackmania interface).
- Run baseline PPO agent training.
- Track results in WandB and visualize in-game.
- Git: Ensure that git is installed on your machine. Download Git
- Python 3.12: Required for the project. Download Python
- UV: Used for managing Python environments. Install UV
- Docker (optional): For DevContainer development. Download Docker
-
Clone the repository:
git clone https://github.com/CogitoNTNU/DeepTactics-TrackMania.git cd DeepTactics-TrackMania -
Install dependencies:
uv sync
-
Set up pre commit (only for development):
uv run pre-commit install
To run the project, run the following command from the root directory of the project:
To build and preview the documentation site locally:
uv run mkdocs build
uv run mkdocs serveThis will build the documentation and start a local server at http://127.0.0.1:8000/ where you can browse the docs and API reference. Get the documentation according to the lastes commit on main by viewing the gh-pages branch on GitHub: https://cogitontnu.github.io/DeepTactics-TrackMania/.
To run the test suite, run the following command from the root directory of the project:
uv run pytest --doctest-modules --cov=src --cov-report=htmlThis project would not have been possible without the hard work and dedication of all of the contributors.
Thank you for the time and effort you have put into making this project a reality.
![]() Ludvig Øvrevik Project Lead |
![]() Brage Kvamme Project Lead |
![]() Edvard Klavenes Project Member |
![]() Simen Førdestrøm Verhoeven Project Member |
Distributed under the MIT License. See LICENSE for more information.





