예제 #1
0
        public bool CompareAnswer(Questions question)
        {
            int  userAnswer = new PrintToScreen().UserInput(question);
            bool isTrue     = new CheckAnswer().IsTrue(question, userAnswer);

            return(isTrue);
        }
예제 #2
0
파일: Manager.cs 프로젝트: Snorkan/QuizGame
        //
        public int[] Loopiloop(Questions question, int[] scoreTracker)
        {
            //scoreStats[0] is the count

            while (scoreTracker[0] > 0)
            {
                bool isTrue = new CheckAnswer().CompareAnswer(question);
                scoreTracker = new Manager().Countdown(question, scoreTracker, isTrue);
            }
            return(scoreTracker);
        }