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
capturePiece Method
Loops through each of the nieghbours of the destination
Square
and checks if any piece has been captured.
Namespace:
VikingChess.Model
Assembly:
VikingChess (in VikingChess.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
void
capturePiece
(
Square
destination
,
Piece
selectedPiece
)
Parameters
destination
Type:
VikingChess.Model
Square
The
Square
to check the neighbours of.
selectedPiece
Type:
VikingChess.Model
Piece
The
Piece
capturing.
See Also
Reference
Game Class
VikingChess.Model Namespace
Copyright Declan Murphy 2016
Send comments on this topic to
masterdex@live.ie