C# Класс ChessDotNet.Variants.Atomic.AtomicChessGame

Наследование: ChessGame
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
IsValidMove ( Move move, bool validateCheck, bool careAboutWhoseTurnItIs ) : bool
WouldBeSuicide ( Move move, Player player ) : bool
WouldBeSuicideOrInvalidSelfMoveInCheck ( Move move, Player player ) : bool

Описание методов

ApplyMove() публичный метод

public ApplyMove ( Move move, bool alreadyValidated ) : MoveType
move Move
alreadyValidated bool
Результат MoveType

AtomicChessGame() публичный метод

public AtomicChessGame ( ) : System.Collections.Generic
Результат System.Collections.Generic

AtomicChessGame() публичный метод

public AtomicChessGame ( GameCreationData data ) : System.Collections.Generic
data GameCreationData
Результат System.Collections.Generic

AtomicChessGame() публичный метод

public AtomicChessGame ( IEnumerable moves, bool movesAreValidated ) : System.Collections.Generic
moves IEnumerable
movesAreValidated bool
Результат System.Collections.Generic

AtomicChessGame() публичный метод

public AtomicChessGame ( Piece board, Player whoseTurn ) : System.Collections.Generic
board Piece
whoseTurn Player
Результат System.Collections.Generic

AtomicChessGame() публичный метод

public AtomicChessGame ( string fen ) : System.Collections.Generic
fen string
Результат System.Collections.Generic

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

KingIsGone() публичный метод

public KingIsGone ( Player player ) : bool
player Player
Результат bool

WouldBeSuicide() защищенный метод

protected WouldBeSuicide ( Move move, Player player ) : bool
move Move
player Player
Результат bool

WouldBeSuicideOrInvalidSelfMoveInCheck() защищенный метод

protected WouldBeSuicideOrInvalidSelfMoveInCheck ( Move move, Player player ) : bool
move Move
player Player
Результат bool