C# Class ChessDotNet.Variants.Atomic.AtomicChessGame

Inheritance: ChessGame
ファイルを表示 Open project: ProgramFOX/Chess.NET Class Usage Examples

Public Methods

Method Description
ApplyMove ( Move move, bool alreadyValidated ) : MoveType
AtomicChessGame ( ) : System.Collections.Generic
AtomicChessGame ( GameCreationData data ) : System.Collections.Generic
AtomicChessGame ( IEnumerable moves, bool movesAreValidated ) : System.Collections.Generic
AtomicChessGame ( Piece board, Player whoseTurn ) : System.Collections.Generic
AtomicChessGame ( string fen ) : System.Collections.Generic
IsWinner ( Player player ) : bool
KingIsGone ( Player player ) : bool

Protected Methods

Method Description
IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool
WouldBeSuicide ( Move move, Player player ) : bool
WouldBeSuicideOrInvalidSelfMoveInCheck ( Move move, Player player ) : bool

Method Details

ApplyMove() public method

public ApplyMove ( Move move, bool alreadyValidated ) : MoveType
move Move
alreadyValidated bool
return MoveType

AtomicChessGame() public method

public AtomicChessGame ( ) : System.Collections.Generic
return System.Collections.Generic

AtomicChessGame() public method

public AtomicChessGame ( GameCreationData data ) : System.Collections.Generic
data GameCreationData
return System.Collections.Generic

AtomicChessGame() public method

public AtomicChessGame ( IEnumerable moves, bool movesAreValidated ) : System.Collections.Generic
moves IEnumerable
movesAreValidated bool
return System.Collections.Generic

AtomicChessGame() public method

public AtomicChessGame ( Piece board, Player whoseTurn ) : System.Collections.Generic
board Piece
whoseTurn Player
return System.Collections.Generic

AtomicChessGame() public method

public AtomicChessGame ( string fen ) : System.Collections.Generic
fen string
return System.Collections.Generic

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

KingIsGone() public method

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

WouldBeSuicide() protected method

protected WouldBeSuicide ( Move move, Player player ) : bool
move Move
player Player
return bool

WouldBeSuicideOrInvalidSelfMoveInCheck() protected method

protected WouldBeSuicideOrInvalidSelfMoveInCheck ( Move move, Player player ) : bool
move Move
player Player
return bool