Example #1
0
        public void Playgame()
        {
            Game.PrintGame();
            while (true)
            {
                Console.WriteLine(P1.Getname() + " luot 1 ");
                P1.PickBall(Game);
                if (Game.Gameover())
                {
                    Console.WriteLine(P1.Getname() + "WIN");
                    Console.WriteLine(P2.Getname() + "LOSE");
                    break;
                }

                Console.WriteLine(P2.Getname() + " luot 1 ");
                P1.PickBall(Game);
                if (Game.Gameover())
                {
                    Console.WriteLine(P2.Getname() + "WIN");
                    Console.WriteLine(P1.Getname() + "LOSE");
                    break;
                }
            }
        }