Player Class |
Namespace: VikingChess.Model
public class Player
The Player type exposes the following members.
Name | Description | |
---|---|---|
Player |
Simple Constructor
| |
Player(Player) |
Copy Constructor
| |
Player(EnumsColor, EnumsPlayerType) |
Constructs a new Player object and sets its color.
| |
Player(EnumsColor, String, EnumsPlayerType) |
Main Constructor
|
Name | Description | |
---|---|---|
captureKing |
Tries to return a TupleT1, T2, T3 containing an origin Square, destination Square and Piece
that will capture the King Piece | |
capturePiece |
Tries to return a TupleT1, T2, T3 containing an origin Square, destination Square and Piece
that will capture another Piece | |
Equals | (Inherited from Object.) | |
escapeKing |
Tries to return a TupleT1, T2, T3 containing an origin Square, destination Square and Piece
that will allow the King to escape
| |
Finalize | (Inherited from Object.) | |
GetAllPieceSquares | ||
getColor |
Returns the EnumsColor of the Player.
| |
GetHashCode | (Inherited from Object.) | |
getMoveList |
Returns the moveList of the Player.
| |
getMoveTuple |
Returns a TupleT1, T2, T3 containing the origin Square, destination Square and Piece necessary to move.
| |
getName |
Returns the name of the Player.
| |
getType |
Returns the EnumsPlayerType of the Player | |
GetType | (Inherited from Object.) | |
getWin |
Returns the win status of the Player | |
GetWinningMove |
Tries to return a TupleT1, T2, T3 containing an origin Square, destination Square and Piece
that will result in a win.
| |
makeMCTSMove |
Use the MCTS algorithm to make a move
| |
MemberwiseClone | (Inherited from Object.) | |
removeFromMoveList |
Removes an entry from the moveList of the Player.
| |
SelectCaptureSquare | ||
SelectKingSquare | ||
selectPieceSquare | ||
setColor |
Sets the EnumsColor of the Player.
| |
setName |
Sets the name of the Player | |
setType |
Sets the EnumsPlayerType of Player | |
setWin |
Sets the win status of the Player.
| |
ToString | ToString override
(Overrides ObjectToString.) | |
updateMoveList |
Adds a new entry to the moveList of the Player |
Name | Description | |
---|---|---|
color |
The EnumsColor of the Player | |
hasWon |
A Boolean representing whether or not the Player has won or not.
| |
moveList | ||
name |
The name of the Player | |
type |
The EnumsPlayerType of the Player |