Property | Type | Description | |
---|---|---|---|
Board | ChessDotNet.Piece[][] | ||
checkmatedCacheBlack | Cache |
||
checkmatedCacheWhite | Cache |
||
fiftyMoves | bool | ||
inCheckCacheBlack | Cache |
||
inCheckCacheWhite | Cache |
||
stalematedCacheBlack | Cache |
||
stalematedCacheWhite | Cache |
Method | Description | |
---|---|---|
ApplyMove ( |
||
ChessGame ( ) : System | ||
ChessGame ( |
||
ChessGame ( IEnumerable |
||
ChessGame ( string fen ) : System | ||
ClaimDraw ( string reason ) : void | ||
GetBoard ( ) : ChessDotNet.Piece[][] | ||
GetFen ( ) : string | ||
GetPieceAt ( File file, int rank ) : |
||
GetPieceAt ( |
||
GetValidMoves ( Player player ) : ReadOnlyCollection |
||
GetValidMoves ( |
||
HasAnyValidMoves ( Player player ) : bool | ||
HasAnyValidMoves ( |
||
IsCheckmated ( Player player ) : bool | ||
IsDraw ( ) : bool | ||
IsInCheck ( Player player ) : bool | ||
IsStalemated ( Player player ) : bool | ||
IsValidMove ( |
||
IsWinner ( Player player ) : bool | ||
MapPgnCharToPiece ( char c, Player owner ) : |
||
Resign ( Player player ) : void | ||
WouldBeInCheckAfter ( |
Method | Description | |
---|---|---|
ApplyCastle ( |
||
CloneBoard ( |
||
FenStringToGameCreationData ( string fen ) : |
||
GetValidMoves ( Player player, bool returnIfAny ) : ReadOnlyCollection |
||
GetValidMoves ( |
||
IsValidMove ( |
||
IsValidMove ( |
||
SetPieceAt ( File file, int rank, |
||
UseGameCreationData ( |
Method | Description | |
---|---|---|
ChessGame ( |
protected ApplyCastle ( |
||
move | ||
return | CastlingType |
public ApplyMove ( |
||
move | ||
alreadyValidated | bool | |
return | MoveType |
public ChessGame ( |
||
data | ||
return | System |
public ChessGame ( IEnumerable |
||
moves | IEnumerable |
|
movesAreValidated | bool | |
return | System |
protected static CloneBoard ( |
||
originalBoard | ||
return | ChessDotNet.Piece[][] |
protected FenStringToGameCreationData ( string fen ) : |
||
fen | string | |
return |
public GetPieceAt ( File file, int rank ) : |
||
file | File | |
rank | int | |
return |
public GetPieceAt ( |
||
position | ||
return |
public GetValidMoves ( Player player ) : ReadOnlyCollection |
||
player | Player | |
return | ReadOnlyCollection |
protected GetValidMoves ( Player player, bool returnIfAny ) : ReadOnlyCollection |
||
player | Player | |
returnIfAny | bool | |
return | ReadOnlyCollection |
public GetValidMoves ( |
||
from | ||
return | ReadOnlyCollection |
protected GetValidMoves ( |
||
from | ||
returnIfAny | bool | |
return | ReadOnlyCollection |
public HasAnyValidMoves ( Player player ) : bool | ||
player | Player | |
return | bool |
public HasAnyValidMoves ( |
||
from | ||
return | bool |
protected IsValidMove ( |
||
move | ||
validateCheck | bool | |
return | bool |
protected IsValidMove ( |
||
move | ||
validateCheck | bool | |
careAboutWhoseTurnItIs | bool | |
return | bool |
public MapPgnCharToPiece ( char c, Player owner ) : |
||
c | char | |
owner | Player | |
return |
protected SetPieceAt ( File file, int rank, |
||
file | File | |
rank | int | |
piece | ||
return | void |
protected UseGameCreationData ( |
||
data | ||
return | void |
public WouldBeInCheckAfter ( |
||
move | ||
player | Player | |
return | bool |