Game Methods |
The Game type exposes the following members.
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 | ||
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
movePiece | ||
movePieceAndGetBoard | ||
PlaySound |
Plays a sound
| |
setCurrentPlayer |
Sets the currentPlayer for this Game | |
setScore | ||
ToString | (Inherited from Object.) | |
undoMove |
Undo the last move
| |
updateCurrentPlayer |
Updates the currentPlayer of this Game | |
updateTurnCount |