IsLowercase() solution

bool FBullCowGame::IsLowercase(FString Guess) const
{
	if (Guess == "") { return true; }

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

Privacy & Terms