Hi Rob, Thanks for the feedback.
- player input is case-sensitive, so for example, “MENU” isn’t accepted as “menu”, and passwords can be incorrect even if the letters were, effectively, correct.
Are you suggesting to use .ToLower()
in some way to accept menu, Menu, MeNu, MENU, etc.?
I specifically ask for lowercase menu
const string navHint = "Type 'menu' to return to the Main Menu\nType 'exit' to leave game";
and test the input for a lowercase menu
if (input == "menu")
{
ShowMainMenu();
}
- I was a little surprised the name wasn’t still retained after typing “exit” but I appreciate that it was effectively a hard reset
I thought it would need to be reset also but using string.IsNullOrEmpty()
if (string.IsNullOrEmpty(input))
{
ShowWelcomeScreen();
}
Seems to keep the user in the Welcome Screen until they type something which then replaces the previous name.
As for Uppercase letters in the passwords…I was just to lazy to figure out good ones.
The ASCII art was also generated online, not my doing but thanks.