Viking Chess Documentation
Viking Chess Documentation
VikingChess Namespaces
VikingChess.Model
Piece Class
Piece Methods
canMoveTo Method
generateLegalMoves Method
getColor Method
getFile Method
getLocation Method
getRank Method
getType Method
setColor Method
setFile Method
setLocation Method
setRank Method
setType Method
ToString Method
Piece
generateLegalMoves 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#
Copy
public
List
<
Square
>
generateLegalMoves
(
Board
board
)
Parameters
board
Type:
VikingChess.Model
Board
The
Board
that represents the state to check from.
Return Value
Type:
List
Square
An
List
T
containing all
Square
s that the
Piece
can move to.
See Also
Reference
Piece Class
VikingChess.Model Namespace
Copyright Declan Murphy 2016
Send comments on this topic to
masterdex@live.ie