If the order of players in matches matters. Used in tournaments that require color balance.
Initialized as false
Unique ID of the tournament.
Array of all matches in the tournament.
Initialized as []
Object for storing any additional information, useful for implementations of the library.
Initialized as {}
Name of the tournament.
Array of all players in the tournament.
Initialized as []
Current round of the tournament.
Initialized as 0
Details about scoring, including point values for all outcomes and a sorted list of tiebreakers.
Initialized as:
{
bestOf: 1,
win: 1,
draw: 0.5,
loss: 0,
bye: 1,
tiebreaks: []
}
Number of possible games. Used to determine number of wins in a bye.
Points awarded for receiving a bye.
Points awarded for drawing a match.
Points awarded for losing a match.
Array of tiebreakers being used.
Points awarded for winning a match.
Method of sorting players, if they are rated/seeded.
Initialized as 'none'
Details about the first stage of the tournament.
Initialized as:
{
format: 'single-elimination',
consolation: false,
rounds: 0,
initialRound: 1,
maxPlayers: 0
}
If there is a third place match for single elimination.
Format for the first stage.
Number of the first round.
Maximum number of players who can be enrolled. There is no maximum if this is zero.
Number of rounds in the first stage.
Details about the second stage of the tournament.
Initialized as:
{
format: null,
consolation: false,
advance: {
value: 0,
method: 'all'
}
}
Determines how players advance from stage one to stage two.
The type of value to use if players advance.
The breakpoint value for advancing players (greater than or equal to if method: 'points'
and less than or equal to if method: 'rank'
).
If there is a third place match for single elimination.
Format for the second stage. If null
, then there is no stage two.
Current state of the tournament.
Initialized as 'setup'
Properties of tournaments