Ejemplo n.º 1
0
        public static void Main(String[] args)
        {
            Game aGame = new Game(new QuestionManager());

            aGame.AddPlayer("Chet");
            aGame.AddPlayer("Pat");
            aGame.AddPlayer("Sue");

            Random rand = new Random(1);

            do
            {
                aGame.Roll(rand.Next(5) + 1);

                if (rand.Next(9) == 7)
                {
                    notAWinner = aGame.GotWrongAnswer();
                }
                else
                {
                    notAWinner = aGame.GotCorrectAnswer();
                }
            } while (notAWinner);
        }