Generates the ranking.
The match of which the players need to be ranked
The rules of the match
The rules for every set
The ranking sorted according to the table tennis rules.
Parses the game score to an object
Game scores are written as 11-9
where the first value represents the home score and the second one the away score.
Parses the set score to an object.
The input is a string of game-scores (11-9
) where each game score is seperated by a comma (,
).
Set score can also be wo:home
or wo:away
which stands for a walkover. A walkover occurs when a when no games are played due to a player/side not starting the set.
Examples:
11-9,10-12
- Two sets were played, 11-9 and 10-12wo:home
- The home player has won by defaultwo:away
- The away player has won by defaultGenerated using TypeDoc
The set rules (currently only winning by "best-of" is supported)