C# Class ChessDotNet.Variants.Antichess.AntichessGame

Inheritance: ChessGame
Show file Open project: ProgramFOX/Chess.NET

Public Methods

Method Description
AntichessGame ( ) : ChessDotNet.Pieces
AntichessGame ( GameCreationData data ) : ChessDotNet.Pieces
AntichessGame ( IEnumerable moves, bool movesAreValidated ) : ChessDotNet.Pieces
AntichessGame ( Piece board, Player whoseTurn ) : ChessDotNet.Pieces
AntichessGame ( string fen ) : ChessDotNet.Pieces
IsCheckmated ( Player player ) : bool
IsDraw ( ) : bool
IsInCheck ( Player player ) : bool
IsWinner ( Player player ) : bool
WouldBeInCheckAfter ( Move move, Player player ) : bool

Protected Methods

Method Description
GetValidMoves ( Player player, bool returnIfAny ) : ReadOnlyCollection
GetValidMoves ( Position from, bool returnIfAny ) : ReadOnlyCollection
IsCapture ( Move move, Piece piece ) : bool
IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool

Method Details

AntichessGame() public method

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

AntichessGame() public method

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

AntichessGame() public method

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

AntichessGame() public method

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

AntichessGame() public method

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

GetValidMoves() protected method

protected GetValidMoves ( Player player, bool returnIfAny ) : ReadOnlyCollection
player Player
returnIfAny bool
return ReadOnlyCollection

GetValidMoves() protected method

protected GetValidMoves ( Position from, bool returnIfAny ) : ReadOnlyCollection
from Position
returnIfAny bool
return ReadOnlyCollection

IsCapture() protected method

protected IsCapture ( Move move, Piece piece ) : bool
move Move
piece Piece
return bool

IsCheckmated() public method

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

IsDraw() public method

public IsDraw ( ) : bool
return bool

IsInCheck() public method

public IsInCheck ( 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

WouldBeInCheckAfter() public method

public WouldBeInCheckAfter ( Move move, Player player ) : bool
move Move
player Player
return bool