Click or drag to resize
PiecegenerateLegalMoves Method
Returns an List containing all legal Moves for the Piece from its current Square.

Namespace: VikingChess.Model
Assembly: VikingChess (in VikingChess.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public List<Square> generateLegalMoves(
	Board board
)

Parameters

board
Type: VikingChess.ModelBoard
The Board that represents the state to check from.

Return Value

Type: ListSquare
An ListT containing all Squares that the Piece can move to.
See Also