Viking Chess Documentation
Viking Chess Documentation
VikingChess Namespaces
VikingChess.Model
Game Class
Game Methods
capturePiece Method
checkCapture Method
checkKingCapture Method
checkKingMoves Method
checkWin Method
getBoard Method
getCurrentPlayer Method
getPlayer1 Method
getPlayer2 Method
getTurnCount Method
movePiece Method
movePieceAndGetBoard Method
PlaySound Method
setCurrentPlayer Method
setScore Method
undoMove Method
updateCurrentPlayer Method
updateTurnCount Method
Game
checkKingCapture Method
Checks to see if the king is surrounded
Namespace:
VikingChess.Model
Assembly:
VikingChess (in VikingChess.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
bool
checkKingCapture
(
Square
kingSquare
)
Parameters
kingSquare
Type:
VikingChess.Model
Square
The
Square
that the king
Piece
is on.
Return Value
Type:
Boolean
A
Boolean
representing if the king is surrounded or not.
See Also
Reference
Game Class
VikingChess.Model Namespace
Copyright Declan Murphy 2016
Send comments on this topic to
masterdex@live.ie