Example #1
0
        void Start()
        {
            Player player1 = new Player("John");
            Player player2 = new Player("Emma");

            WarCardGame war = new WarCardGame(player1, player2);

            PlayTheGame(war);
        }
Example #2
0
        void PlayTheGame(WarCardGame war)
        {
            war.StartNewGame();
            while (!war.EndOfGame())
            {
                war.NextCard();
            }

            Console.WriteLine();
            Console.WriteLine(war.GetWinner().name + " has won!");
        }