Exemplo n.º 1
0
    public string[] getSolutionKeywords()
    {
        switch (currentProblemType)
        {
        case ProblemTypes.PartNotWorking: {
            int row = 0;
            int col = 0;
            switch (currentProblemPart)
            {
            case "brake_shift":  row = 0; break;

            case "transmission": row = 1; break;

            case "carburetor":   row = 2; break;
            }
            switch (currentProblemReported)
            {
            case "emitting_smoke":         col = 0; break;

            case "stuck_in_place":         col = 1; break;

            case "shaking_uncontrollably": col = 2; break;
            }
            string[] strings = CarProblems.GetKeywordsForPartProblem(row, col, brakeShift2005, !carburetorValveOpen, !brakeShift2005);
            return(strings);
        }

        case ProblemTypes.WarningLight: {
            int row = 0;
            int col = 0;
            switch (currentWarningFrame)
            {
            case WarningLightFrames.VerticalScroll:   row = 0; break;

            case WarningLightFrames.Paper:            row = 1; break;

            case WarningLightFrames.HorizontalScroll: row = 2; break;
            }
            switch (currentStarPoints)
            {
            case 10: col = 0; break;

            case 7:  col = 1; break;

            case 8:  col = 2; break;
            }
            string[] strings = CarProblems.GetKeywordsForLightProblem(row, col, IsMultipleOfSeven, EndsInNine, InFibonacciSequence);
            return(strings);
        }

        default:
            break;
        }
        return(new string[1] {
            "battery"
        });
    }