private bool CanMove(Position position) { Piece piece = Board.piece(position); return(piece == null || piece.Color != Color); }
private bool TestRookCastling(Position position) { Piece p = Board.Piece(position); return(p != null && p is Rook && p.Color == Color && p.MoveCount == 0); }
private bool CanMove(Position pos) { Piece p = Board.Piece(pos); return(p == null || p.Color != Color); }
private bool canMove(Position pos) { Piece p = table.piece(pos); return(p == null || p.color != color); }
public bool ThereIsAdversary(Position pos) { Piece p = Board.GetPiece(pos); return(p != null && p.Color != Color); }
private bool canMov(Position p) { Piece aux = PieceBoard.GetPiece(p); return(aux == null || aux.PieceColor != PieceColor); }