Player12
An open source football management simulator
Loading...
Searching...
No Matches
standings.h File Reference
#include <cstdint>
#include <string>
#include <vector>
#include "global/types.h"

Go to the source code of this file.

Classes

struct  StandingRow
 One row of a league table, derived from played league fixtures. More...
 

Namespaces

namespace  Standings
 Run-in maths of a league table: which outcomes are mathematically decided (title, promotion, play-off and continental places, survival) and what a club still needs from its own games.
 

Functions

std::vector< StandingRow > Standings::compute (const League &league, const Calendar &calendar, const GameData &gamedata)
 Computes a league table from the played league fixtures.
 

Variables

constexpr uint16_t Standings::POINTS_FOR_WIN = 3
 
constexpr uint16_t Standings::POINTS_FOR_DRAW = 1
 
constexpr size_t Standings::FORM_LENGTH = 5