C# 클래스 Chess.Data.Piece.King

상속: Chess.Data.Entities.ChessPiece
파일 보기 프로젝트 열기: colin-higgins/ChessSharp

공개 메소드들

메소드 설명
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

메소드 상세

GetValidMoves() 공개 메소드

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

IsInCheck() 공개 메소드

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

IsLegalCastle() 공개 메소드

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

IsLegalMove() 공개 메소드

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

King() 공개 메소드

public King ( ) : System
리턴 System