namespace RockPaperScissors
static void Main(string[] args)
int playerMove = PlayerMove();
int opponentMove = OpponentMove();
Console.WriteLine("You lose due to forfeit. Try again!");
else if (playerMove == 1 && opponentMove == 1 || playerMove == 2 && opponentMove == 2 || playerMove == 3 && opponentMove == 3)
Console.WriteLine("The game is a draw! Try again!");
else if (playerMove == 1 && opponentMove == 3 || playerMove == 2 && opponentMove == 1 || playerMove == 3 && opponentMove == 2)
Console.WriteLine("You won!");
else if (playerMove == 3 && opponentMove == 1 || playerMove == 1 && opponentMove == 2 || playerMove == 2 && opponentMove == 3)
Console.WriteLine("You lose! Try again next time");
Console.WriteLine("Hello. We're going to play Rock, Paper, Scissors!");
Console.WriteLine("Enter 1 for Rock. Enter 2 for Paper. Enter 3 for Scissors!");
player = int.Parse(Console.ReadLine());
Console.WriteLine("Enter in a correct number next time!");
Console.WriteLine("You forfeit this round.");
Console.WriteLine("You chose " + playerMove);
static int OpponentMove()
string opponentMove = " ";
Random randomNumbers = new Random();
opponent = randomNumbers.Next(1, 4);
opponentMove = "Scissors";
Console.WriteLine("Computer chose " + opponentMove);