Class: Player

Player

Class representing a player.


new Player(id, alias, seed)

Create a new player.

Parameters:
Name Type Argument Description
id String

String to be the player ID.

alias String

String to be the player's name.

seed Number <nullable>

Number to be used as the seed.

Members


active :Boolean

If the player is still in the tournament.

Type:
  • Boolean

alias :String

Name of the player.

Type:
  • String

byes :Number

Number of byes assigned.

Type:
  • Number

colorPref :Number

Color preference for chess tournaments.
Add 1 for white (player one) and subtract 1 for black (player two).

Type:
  • Number

colors :Array.<String>

Array of colors that player has played in a chess tournament.

Type:
  • Array.<String>

gamePoints :Number

Number of game points the player has.

Type:
  • Number

games :Number

Number of games played.

Type:
  • Number

id :String

Alphanumeric string ID.

Type:
  • String

matches :Number

Number of matches played.

Type:
  • Number

matchPoints :Number

Number of match points the player has.

Type:
  • Number

opponents :Array.<Player>

Array of players played against.

Type:

results :Array.<String>

Array of results. Options are w (win), l (loss), and d (draw).

Type:
  • Array.<String>

<nullable> seed :Number

Value to sort players.

Type:
  • Number

tiebreakers :Object

Tiebreaker values.

Type:
  • Object