Exemplo n.º 1
0
        public static void PlayCustomGame(CustomGame argCustomGame, CalculationEngine argCalculation)
        {
            PlayGameMethods playGameMethods = new PlayGameMethods();

            argCustomGame.SaveSampleFile();
            argCustomGame.ExecuteReadMethod();

            argCalculation.CalculateScore(argCustomGame.questionsList, argCustomGame.answerListCorrect,
                                          argCustomGame.answerListIncorrect1, argCustomGame.answerListIncorrect2, argCustomGame.answerListIncorrect3);
        }
Exemplo n.º 2
0
 public static void PlayGeneralKnowledgeGame(GeneralKnowledge argGeneralKnowledge, CalculationEngine argCalculation)
 {
     argCalculation.CalculateScore(argGeneralKnowledge.questionsList, argGeneralKnowledge.answerListCorrect,
                                   argGeneralKnowledge.answerListIncorrect1, argGeneralKnowledge.answerListIncorrect2, argGeneralKnowledge.answerListIncorrect3);
 }
Exemplo n.º 3
0
 public static void PlayCsharpGame(CSharpQuestionAndAnswer argCsharp, CalculationEngine argCalculation)
 {
     // apply C# argCalculations
     argCalculation.CalculateScore(argCsharp.questionsList, argCsharp.answerListCorrect,
                                   argCsharp.answerListIncorrect1, argCsharp.answerListIncorrect2, argCsharp.answerListIncorrect3);
 }