C# Class ChessDotNet.Variants.RacingKings.RacingKingsChessGame

Inheritance: ChessGame
显示文件 Open project: ProgramFOX/Chess.NET

Public Methods

Method Description
IsDraw ( ) : bool
IsWinner ( Player player ) : bool
RacingKingsChessGame ( ) : ChessDotNet.Pieces
RacingKingsChessGame ( GameCreationData data ) : ChessDotNet.Pieces
RacingKingsChessGame ( IEnumerable moves, bool movesAreValidated ) : ChessDotNet.Pieces
RacingKingsChessGame ( Piece board, Player whoseTurn ) : ChessDotNet.Pieces
RacingKingsChessGame ( string fen ) : ChessDotNet.Pieces

Protected Methods

Method Description
FindKing ( Player player ) : Position
IsKingOnBackRank ( Player player ) : bool
IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool

Method Details

FindKing() protected method

protected FindKing ( Player player ) : Position
player Player
return Position

IsDraw() public method

public IsDraw ( ) : bool
return bool

IsKingOnBackRank() protected method

protected IsKingOnBackRank ( Player player ) : bool
player Player
return bool

IsValidMove() protected method

protected IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool
move Move
validateCheck bool
careAboutWhoseTurnItIs bool
return bool

IsWinner() public method

public IsWinner ( Player player ) : bool
player Player
return bool

RacingKingsChessGame() public method

public RacingKingsChessGame ( ) : ChessDotNet.Pieces
return ChessDotNet.Pieces

RacingKingsChessGame() public method

public RacingKingsChessGame ( GameCreationData data ) : ChessDotNet.Pieces
data GameCreationData
return ChessDotNet.Pieces

RacingKingsChessGame() public method

public RacingKingsChessGame ( IEnumerable moves, bool movesAreValidated ) : ChessDotNet.Pieces
moves IEnumerable
movesAreValidated bool
return ChessDotNet.Pieces

RacingKingsChessGame() public method

public RacingKingsChessGame ( Piece board, Player whoseTurn ) : ChessDotNet.Pieces
board Piece
whoseTurn Player
return ChessDotNet.Pieces

RacingKingsChessGame() public method

public RacingKingsChessGame ( string fen ) : ChessDotNet.Pieces
fen string
return ChessDotNet.Pieces