public static void Main()
RockPaperScissorsGame ();
public static string GetChoice(bool flag)
Random rng = new Random();
Console.Write ("Enter r, s or p: ");
input = Console.ReadLine().ToLower();
}while(input != "r" && input != "s" && input != "p");
public static int RoundState (string PlayerOne, string PlayerTwo){
if(PlayerOne == "r" && PlayerTwo == "s" || PlayerOne == "s" && PlayerTwo == "p"
|| PlayerOne == "p" && PlayerTwo == "r"){
else if(PlayerOne == "r" && PlayerTwo == "p" || PlayerOne == "s" && PlayerTwo == "r"
|| PlayerOne == "p" && PlayerTwo == "s"){
public static void RockPaperScissorsGame (){
Console.WriteLine("----Rock, Paper, Scissors Game----");
string playerOneChoice = GetChoice (false);
string playerTwoChoice = GetChoice (true);
switch (playerOneChoice){
switch (playerTwoChoice){
Console.WriteLine (temp + " vs " + temp2);
int win = RoundState (playerOneChoice, playerTwoChoice);
Console.WriteLine ("Player 1 has won!");
Console.WriteLine ("Player 2 has won!");
Console.WriteLine ("Game was a draw!");