Click or drag to resize
GamecapturePiece 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#
public void capturePiece(
	Square destination,
	Piece selectedPiece
)

Parameters

destination
Type: VikingChess.ModelSquare
The Square to check the neighbours of.
selectedPiece
Type: VikingChess.ModelPiece
The Piece capturing.
See Also