Click or drag to resize
Game Methods

The Game type exposes the following members.

Methods
  NameDescription
Public methodcapturePiece
Loops through each of the nieghbours of the destination Square and checks if any piece has been captured.
Public methodcheckCapture
Checks if there is a Piece that can be captured in the passed in direction.
Public methodcheckKingCapture
Checks to see if the king is surrounded
Public methodcheckKingMoves
Checks to see if the King has moved to an edge.
Public methodcheckWin
Checks to see if a Player has won or not.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodgetBoard
Returns the Board of this game.
Public methodgetCurrentPlayer
Returns the currentPlayer of this Game
Public methodGetHashCode (Inherited from Object.)
Public methodgetPlayer1
Get the player1Player
Public methodgetPlayer2
Get the player2Player
Public methodgetTurnCount
Returns the turnCount of this Game
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodmovePiece
Move a Piece on the board
Public methodmovePieceAndGetBoard
Move a Piece on the board
Public methodPlaySound
Plays a sound
Public methodsetCurrentPlayer
Sets the currentPlayer for this Game
Public methodsetScore
Sets the score for this Game
Public methodToString (Inherited from Object.)
Public methodundoMove
Undo the last move
Public methodupdateCurrentPlayer
Updates the currentPlayer of this Game
Public methodupdateTurnCount
Update the turnCount for this Game
Top
See Also