Beispiel #1
0
 // Method
 public void ScoreCurrentQuestion()
 {
     if (!CurrentQuestion.Scored)
     {
         if (CurrentQuestion.IsCorrect())
         {
             Score += CurrentQuestion.Points;
         }
     }
     CurrentQuestion.Scored = true;
 }
Beispiel #2
0
        public bool SubmitAnswer(string PlayerAnswer)
        {
            if (IsComplete)
            {
                // TODO: What do we want to do here? Exception?
                return(false);
            }

            bool Correct = CurrentQuestion.IsCorrect(PlayerAnswer);

            if (Correct)
            {
                _numberCorrect++;
            }

            _currentQuestionIndex++;
            RaiseNewQuestion();
            return(Correct);
        }