IsLowerCase() Solution

Went simple. Replicated what was done in the prior video without the use of a map:
(Function definition)

bool FBullCowGame::IsLowerCase(FString Guess) const
{
	if (Guess.length() <= 1) { return true; }

	for (auto Letter : Guess)
		if (Letter = islower(Letter)) {
			return false;
		}
	return true;
}

While playtesting I did a slight modification because of a bug in my code: the function always returned false and the game gave the “not lowercase” error message.

bool FBullCowGame::IsLowerCase(FString Guess) const
{
	if (Guess.length() <= 1) { return true; }

	for (auto Letter : Guess)
	{
		// if not a lowercase letter 
		if (!islower(Letter)) {
			return false;
		}
	}
	return true;
}

Privacy & Terms