Click or drag to resize
GamecheckCapture Method
Checks if there is a Piece that can be captured in the passed in direction.

Namespace: VikingChess.Model
Assembly: VikingChess (in VikingChess.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void checkCapture(
	int direction,
	Square[] neighbourSquares,
	Piece selectedPiece
)

Parameters

direction
Type: SystemInt32
The direction to check.
neighbourSquares
Type: VikingChess.ModelSquare
The neighbouring SquareArray
selectedPiece
Type: VikingChess.ModelPiece
The Piece to check with.
See Also