Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchSimulation Namespace Reference

Functions

MatchContext leagueContext (LeagueID league_id)
 
MatchSimulationResult run (const MatchSimulationInput &input, const StatsConfig &config)
 

Function Documentation

◆ leagueContext()

MatchContext MatchSimulation::leagueContext ( LeagueID  league_id)

Engine context of a match played in the style of league league_id: its goal rate, referee strictness (mean and spread) and home advantage relative to the calibrated engine (LeagueProfile::match_style). League 0 or an unknown league gives the engine default. Live matches call this too, so a watched match plays like the same fixture simulated unwatched.

◆ run()

MatchSimulationResult MatchSimulation::run ( const MatchSimulationInput &  input,
const StatsConfig &  config 
)

Runs one match to full time. Thread-safe for distinct inputs.