C# Class Chess.Data.Piece.Knight

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
Knight ( ) : System

Private Methods

Méthode Description
EndPositionIsWithinBounds ( int newRow, int newColumn ) : bool
IsValidKnightMove ( Move move ) : bool
PossibleEndPositions ( int column, int row ) : HashSet

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

Knight() public méthode

public Knight ( ) : System
Résultat System