C# Class Chess.Data.Piece.King

Inheritance: Chess.Data.Entities.ChessPiece
Afficher le fichier Open project: colin-higgins/ChessSharp

Méthodes publiques

Méthode Description
GetValidMoves ( Square board ) : System.Collections.Generic.IEnumerable
IsInCheck ( Square board ) : bool
IsLegalCastle ( Square board, Move move ) : bool
IsLegalMove ( Square board, Move move, IEnumerable pastMoves = null ) : bool
King ( ) : System

Method Details

GetValidMoves() public méthode

public GetValidMoves ( Square board ) : System.Collections.Generic.IEnumerable
board Chess.Data.Entities.Square
Résultat System.Collections.Generic.IEnumerable

IsInCheck() public méthode

public IsInCheck ( Square board ) : bool
board Chess.Data.Entities.Square
Résultat bool

IsLegalCastle() public méthode

public IsLegalCastle ( Square board, Move move ) : bool
board Chess.Data.Entities.Square
move Chess.Data.Entities.Move
Résultat bool

IsLegalMove() public méthode

public IsLegalMove ( Square board, Move move, IEnumerable pastMoves = null ) : bool
board Chess.Data.Entities.Square
move Chess.Data.Entities.Move
pastMoves IEnumerable
Résultat bool

King() public méthode

public King ( ) : System
Résultat System