Develop / Developer guide · All guides · Improve this page ↗

On this page

Developer guide

Start with Architecture for the career, database, controller and UI boundaries, then use these guides to work on the simulation:

New to the project? Follow the contributor guide for your first change and platform setup for dependencies.

GuideWhat it explains
Match engineState ownership, time and units, tick order, ball physics, rules, replay and scheduling
Player behaviorAttributes, team shape, roles, movement, action selection, defending and goalkeepers
Extending and moddingWorking JSON edits, C++ extension points, custom match contexts and validation
Design notes and Spec Kitty historyRecovered rationale, original source references and differences between plans and shipped code
BuildsConfigure/build/test presets and tooling
Tests and toolsFocused tests, suite labels, balance lab and benchmarks
Runtime editorSchema discovery, page contexts, validation and preservation of custom data
Website and documentationMaintain the showcase, media and rendered guides
ReleasePackaging and runtime paths

These pages describe the source in this repository. Historical specifications are evidence of intent; a planned class or file is not an available API until it exists in the code. The design notes preserve that distinction.

Finding the right implementation

For a visible behavior, follow input → decision → execution → observation. For example, a missed pass can originate in a poor target choice, kick error, an interception, or a failed first touch. Changing the renderer or the displayed completion estimate will not fix those mechanisms.

Use symbol searches rather than line numbers in the large engine file:

rg -n 'simulateStepBody|refreshTacticalTargets|decideAction|updateBall' src/model/match_engine.cpp
rg -n 'TEST\(MatchScenarioTest|TEST\(TacticsTest' test

Keep comments at the boundaries of substantial blocks: explain their purpose, inputs/outputs, units, ordering constraints and the reason for a non-obvious choice. Leave tuning numbers in their named tuning structs. When behavior changes, update the relevant guide and its focused test in the same change.

Building the API documentation

With Doxygen installed, run doxygen Doxyfile from the repository root, or cmake --build build --target docs after configuring with Doxygen available. The developer guides and source comments are included in docs/html/index.html. Generated HTML is ignored; edit the Markdown and source comments instead.