C# 클래스 ChessDotNet.Variants.Antichess.AntichessGame

상속: ChessGame
파일 보기 프로젝트 열기: ProgramFOX/Chess.NET

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

메소드 상세

AntichessGame() 공개 메소드

public AntichessGame ( ) : ChessDotNet.Pieces
리턴 ChessDotNet.Pieces

AntichessGame() 공개 메소드

public AntichessGame ( GameCreationData data ) : ChessDotNet.Pieces
data GameCreationData
리턴 ChessDotNet.Pieces

AntichessGame() 공개 메소드

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

AntichessGame() 공개 메소드

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

AntichessGame() 공개 메소드

public AntichessGame ( string fen ) : ChessDotNet.Pieces
fen string
리턴 ChessDotNet.Pieces

GetValidMoves() 보호된 메소드

protected GetValidMoves ( Player player, bool returnIfAny ) : ReadOnlyCollection
player Player
returnIfAny bool
리턴 ReadOnlyCollection

GetValidMoves() 보호된 메소드

protected GetValidMoves ( Position from, bool returnIfAny ) : ReadOnlyCollection
from Position
returnIfAny bool
리턴 ReadOnlyCollection

IsCapture() 보호된 메소드

protected IsCapture ( Move move, Piece piece ) : bool
move Move
piece Piece
리턴 bool

IsCheckmated() 공개 메소드

public IsCheckmated ( Player player ) : bool
player Player
리턴 bool

IsDraw() 공개 메소드

public IsDraw ( ) : bool
리턴 bool

IsInCheck() 공개 메소드

public IsInCheck ( Player player ) : bool
player Player
리턴 bool

IsValidMove() 보호된 메소드

protected IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool
move Move
validateCheck bool
careAboutWhoseTurnItIs bool
리턴 bool

IsWinner() 공개 메소드

public IsWinner ( Player player ) : bool
player Player
리턴 bool

WouldBeInCheckAfter() 공개 메소드

public WouldBeInCheckAfter ( Move move, Player player ) : bool
move Move
player Player
리턴 bool