Class Player
A player in this game. Every AI controls one player.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Joueur.cs.Games.Chess
Assembly: joueur-cs.dll
Syntax
public class Player : GameObject
Constructors
Player()
Creates a new instance of Player. Used during game initialization, do not call directly.
Declaration
protected Player()
Properties
ClientType
What type of client this is, e.g. 'Python', 'JavaScript', or some other language. For potential data mining purposes.
Declaration
public string ClientType { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Color
The color (side) of this player. Either 'white' or 'black', with the 'white' player having the first move.
Declaration
public string Color { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Lost
If the player lost the game or not.
Declaration
public bool Lost { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the player.
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Opponent
This player's opponent in the game.
Declaration
public Player Opponent { get; protected set; }
Property Value
Type | Description |
---|---|
Player |
ReasonLost
The reason why the player lost the game.
Declaration
public string ReasonLost { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
ReasonWon
The reason why the player won the game.
Declaration
public string ReasonWon { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
TimeRemaining
The amount of time (in ns) remaining for this AI to send commands.
Declaration
public double TimeRemaining { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double |
Won
If the player won the game or not.
Declaration
public bool Won { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |