Exemple #1
0
 public static void RockWinChecker(User1 user1, User2 user2)
 {
     if (user1.Answer == "R" && user2.Answer == "P")
     {
         Console.WriteLine(user2.Name + " won this round");
         user2.AddPoints();
         PointChecker(user1, user2);
         Program.NewRound(user1, user2);
     }
     else if (user1.Answer == "R" && user2.Answer == "S")
     {
         Console.WriteLine(user1.Name + " won this round");
         user1.AddPoints();
         PointChecker(user1, user2);
         Program.NewRound(user1, user2);
     }
     else if (user1.Answer == "R" && user2.Answer == "R")
     {
         Program.DrawRound(user1, user2);
     }
 }