service/ludo_team library

Classes

LudoTeam
Defines a team in teams mode.

Constants

kDefaultTeams → const List<LudoTeam>
The two fixed teams used in 2v2 teams mode.

Functions

areTeammates(int a, int b, List<LudoTeam>? teams) bool
Returns true if a and b are teammates.
teamOf(int playerIndex, List<LudoTeam>? teams) LudoTeam?
Returns the LudoTeam that playerIndex belongs to, from teams. Returns null if teams is null (i.e. not in teams mode).