I'm trying to create a (Pokemon) project just for fun. My friend tried it and he said that the moves' name shouldn't be checked so strictly. Now it's like:
string Movename = "Dark Pulse";
string ChosenMovename = Console.ReadLine();
if (Movename == ChosenMovename)
{
Console.WriteLine(...);
}
else
{
Console.WriteLine("Didn't you mistype something?");
goto P1; //P1 is the end of the code -> the program closes
}
He said I should use an array for different ways of typing like Dark Pulse, dark pulse,Dark pulse,dark Pulse,DARK PULSE (I hope you see the difference). And you know if he writes down dark pulse then (Movename == ChosenMovename) will be false because "Dark Pulse" and "dark pulse" are not the same. So, how NOT to check capital letters in strings?