C# Class Chess.Data.Piece.Pawn

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

Méthodes publiques

Méthode Description
GetValidMoves ( Square board ) : IEnumerable
IsLegalMove ( Square board, Move move, IEnumerable pastMoves = null ) : bool
Pawn ( ) : System
ValidOpeningPushWithNoDefender ( Square board, Move move ) : bool

Private Methods

Méthode Description
CheckForLegalDirection ( Move move ) : void
CheckForMultipleColumnMovement ( Move move ) : void
IsLegalEnPassant ( Square board, Move move, IEnumerable pastMoves ) : bool
IsPawnsSecondMoveInProperDirection ( Move move, Entities lastMove, ChessPiece piece ) : bool

Method Details

GetValidMoves() public méthode

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

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

Pawn() public méthode

public Pawn ( ) : System
Résultat System

ValidOpeningPushWithNoDefender() public méthode

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