C# Class Chess.Data.Piece.King

Inheritance: Chess.Data.Entities.ChessPiece
Show file Open project: colin-higgins/ChessSharp

Public Methods

Method 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 method

public GetValidMoves ( Square board ) : System.Collections.Generic.IEnumerable
board Chess.Data.Entities.Square
return System.Collections.Generic.IEnumerable

IsInCheck() public method

public IsInCheck ( Square board ) : bool
board Chess.Data.Entities.Square
return bool

IsLegalCastle() public method

public IsLegalCastle ( Square board, Move move ) : bool
board Chess.Data.Entities.Square
move Chess.Data.Entities.Move
return bool

IsLegalMove() public method

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

King() public method

public King ( ) : System
return System