Game Class |
Namespace: VikingChess.Model
public class Game
The Game type exposes the following members.
Name | Description | |
---|---|---|
Game |
Blank Constructor
| |
Game(Board) |
Basic Constructor
| |
Game(Board, Boolean) |
Constructor for simulated games. This is used only for the MCTS algorithm.
| |
Game(Board, TupleString, String, String, String, String) |
The Main Constructor
|
Name | Description | |
---|---|---|
capturePiece |
Loops through each of the nieghbours of the destination Square and checks if any piece has been captured.
| |
checkCapture |
Checks if there is a Piece that can be captured in the passed in direction.
| |
checkKingCapture |
Checks to see if the king is surrounded
| |
checkKingMoves |
Checks to see if the King has moved to an edge.
| |
checkWin |
Checks to see if a Player has won or not.
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
getBoard |
Returns the Board of this game.
| |
getCurrentPlayer |
Returns the currentPlayer of this Game | |
GetHashCode | (Inherited from Object.) | |
getPlayer1 | ||
getPlayer2 | ||
getTurnCount |
Returns the turnCount of this Game | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
movePiece | ||
movePieceAndGetBoard | ||
PlaySound |
Plays a sound
| |
setCurrentPlayer |
Sets the currentPlayer for this Game | |
setScore |
Sets the score for this Game | |
ToString | (Inherited from Object.) | |
undoMove |
Undo the last move
| |
updateCurrentPlayer |
Updates the currentPlayer of this Game | |
updateTurnCount |
Update the turnCount for this Game |
Name | Description | |
---|---|---|
blackPieces |
The number of black pieces
| |
board |
The Board to use for this Game | |
capturedPiece |
The piece (if any) that has been captured.
| |
currentPlayer |
The current player
| |
gameOver |
A Boolean representing if the Game is over or not.
| |
gameType |
A String defining the type of Game.
| |
kingCaptured |
A Boolean representing if the king has been captured or not.
| |
kingEscaped |
A Boolean representing if the king has escaped or not.
| |
moveNotation |
A String to store the move notation
| |
pieceCaptured |
A Boolean representing if a piece has been captured or not.
| |
player1 |
The Attacking Player
| |
player2 |
The Defending Player
| |
score |
The score for this Game | |
simulated |
A Boolean representing if the Game is being simulated or not.
| |
stateHistory |
Contains all previous Board objects so that a move can be undone.
| |
turnCount |
The current turn count;
| |
whitePieces |
The number of white pieces
|