Пример #1
0
        public void StartQuiz(List <IQuestionAble> lijst)
        {
            foreach (IQuestionAble vraag in lijst)
            {
                MultipleChoiceQuestion testType = (MultipleChoiceQuestion)vraag;

                Console.WriteLine("Graad:{0} Categorie:{1} \n {2}", vraag.Moeilijkheidsgraad,
                                  vraag.CategorieString, vraag.VraagString);
                if (testType.FalseAnswers != null)
                {
                    testType.ShowAnswers();
                }
                while (true)
                {
                    if (Console.ReadLine() != vraag.Antwoord)
                    {
                        Console.WriteLine("---------------------- \n WRONG! Try again");
                    }
                    else
                    {
                        Console.WriteLine("---------------------- \n CORRECT MOVE ON");
                        break;
                    }
                }
            }
        }