I am trying to write the most basic possible code for a two player rock paper scissors game in C# visual studio. I thought I had finally figured out the coding but am now getting this error. Can someone please give me a push in the proper direction?
/**
Programmer: Corey Flower
Date Written: April 10, 2016
This program allows the user to play rock paper scissors.
*/
using System;
namespace m3
{
class Program
{
static void Main(string args)
{
Console.WriteLine(“Player 1, do you choose rock,paper or scissors”);
string Player1Choice = Console.ReadLine();
Console.WriteLine("Player 2, do you choose rock,paper or scissors");
string Player2Choice = Console.ReadLine();
if (Player1Choice == "rock")
{
if (Player2Choice == "rock")
{
Console.WriteLine("Both players chose rock");
Console.WriteLine("It is a tie ");
}
else if (Player2Choice == "paper")
{
Console.WriteLine("Player 1 chose rock, Player 2 chose paper");
Console.WriteLine("Player 2 wins!");
}
else if (Player2Choice == "scissors")
{
Console.WriteLine("Player 1 chose rock, Player 2 chose scissors");
Console.WriteLine("Player 1 wins! ");
}
else
{
Console.WriteLine("You must choose rock,paper or scissors!");
}
}
else if (Player1Choice == "paper")
{
if (Player2Choice == "rock")
{
Console.WriteLine("Player 1 chose paper, Player 2 chose rock");
Console.WriteLine("Player 1 wins!");
}
else if (Player2Choice == "paper")
{
Console.WriteLine("Both players chose paper");
Console.WriteLine("It is a tie! ");
}
else if (Player2Choice == "scissors")
{
Console.WriteLine("Player 1 chose paper, Player 2 chose scissors");
Console.WriteLine("Player 2 wins!");
}
else
{
Console.WriteLine("You must choose rock,paper or scissors!");
}
}
else if (Player1Choice == "scissors")
{
if (Player2Choice == "rock")
{
Console.WriteLine("Player 1 chose scissors, Player 2 chose rock");
Console.WriteLine("Player 2 wins!");
}
else if (Player2Choice == "paper")
{
Console.WriteLine("Player 1 chose scissors, Player 2 chose paper");
Console.WriteLine("Player 1 wins!");
}
else if (Player2Choice == "scissors")
{
Console.WriteLine("Both players chose scissors");
Console.WriteLine("It is a tie!");
}
else
{
Console.WriteLine("You must choose rock,paper or scissors!");
}
}
(Console.ReadLine() == "yes");
}
}
}