Example #1
0
        // shuffles the quiz-elements, outputs the question (AnswerQuestion()) and increments the answered questions
        public void AnswerQuizElement()
        {
            quizElements.Shuffle();
            QuizElement quizElement = quizElements[0];

            quizElement.AnswerQuestion();
            if (quizElement.GetIsCorrect())
            {
                this.correctlyAnsweredQuestions++;
            }
            this.answeredQuestions++;
        }