For starters, the problem is pretty simple: ReadLine is a method, and that means you need to call it as a method by appending brackets that you could put parameters in:
if(Console.ReadLine() == "Attack")
{
}
But I woudln't do that anyway.
The reason why not is pretty simple: what if it's "throw" or "runaway" instead? Becasue you don't save the user input, you can't test it for anything else afterwards.
So instead, read teh input, and then check it:
string userResponse = Console.ReadLine();
if (userResponse == "Attack")
{
}
else if (userResponse == "Runaway")
}
...
And I wouldn't do it like that either! :laugh:
string userResponse = Console.ReadLine();
switch (userResponse.ToLower())
{
case "attack":
...
break;
case "runaway":
...
break:
default:
Console.WriteLine("I'm sorry, I didn't understand that!");
break;
}
Try it - you should find it's easier to read.