Adds a match to the player's record.
Throws an error if attempting to duplicate a match.
Object with match details
The ID of the player
An array of matches the player is in
If the match is a bye.
Number of draws in the match.
The ID of the match.
Number of losses for the player in the match.
The ID of the opponent (or null if no opponent).
If the opponent has a different point total before the match (used in Swiss pairings).
If the player is player one (1) or player two (-1) in the match (used if seating: true).
Number of wins for the player in the match.
Any extra information
The name of the player
An array of IDs of the player's opponents
The value for the player, such as rating or seed
The value of all player details
If the player is active
Removes a match from player history.
Throws an error if the match doesn't exist in the player's records.
The ID of the match
Set information about the player (only changes in information need to be included in the object).
Updates the details of a match.
Throws an error if the match doesn't exist in the player's records.
Only needs to contain properties that are being changed.
The ID of the match
The match details being changed
Class representing a player
See PlayerValues for detailed descriptions of properties.