Example #1
0
        public void Scoreing(string outcome)
        {
            switch (outcome)
            {
            case "tie":
                Console.WriteLine("\r\n" + "This resulted in a tie.\r\n" + playerOne.name + " chose: " + playerOne.gesture + "\r\n" + playerTwo.name + " chose: " + playerTwo.gesture);
                break;

            case "win":
                Console.WriteLine("\r\n" + "This round resulted in " + playerOne.name + " Winning.\r\n" + playerOne.name + " chose: " + playerOne.gesture + "\r\n" + playerTwo.name + " chose: " + playerTwo.gesture);
                playerOne.IncreaseScore();
                break;

            case "lose":
                Console.WriteLine("\r\n" + "This round resulted in " + playerTwo.name + " Winning.\r\n" + playerOne.name + " chose: " + playerOne.gesture + "\r\n" + playerTwo.name + " chose: " + playerTwo.gesture);
                playerTwo.IncreaseScore();
                break;

            default:
                Console.WriteLine("\r\n" + "What is the matter with you? Pick a valid choice. \r\n");
                break;
            }
        }