public override IEnumerable <Square> GetAvailableMoves(Board board) { var movesList = DiagonalPieceChecker.GetAvailableDiagonalMoves(board, board.FindPiece(this)); var lateralMovesList = LateralPieceChecker.GetAvailableLateralMoves(board, board.FindPiece(this)); return(movesList.Concat(lateralMovesList));; }
public override IEnumerable<Square> GetAvailableMoves(Board board) { var movesList = (List<Square>)LateralPieceChecker.GetAvailableLateralMoves(board, board.FindPiece(this)); return movesList.Concat(GetAvailableCastleMoves(board)); }