Exemplo n.º 1
0
        public static void Winner(RockPaperPlayer user, RockPaperPlayer Watson, int round, string winner)
        {
            WriteLine("Round {0}", round);
            WriteLine(user.Name + " chose " + user.Choice);
            WriteLine(Watson.Name + " chose " + Watson.Choice);
            WriteLine();
            WriteLine(winner);
            WriteLine(user.ToString());
            WriteLine(Watson.ToString());
            WriteLine();

            if (round == 7)
            {
                if (user.Wins > Watson.Wins)
                {
                    WriteLine("Winner of the game is: {0}", user.Name);
                }
                else if (user.Wins < Watson.Wins)
                {
                    WriteLine("Winner of the game is: {0}", Watson.Name);
                }
                else
                {
                    WriteLine("Game was a Tie");
                }
            }
        }