I’ve named it slightly differently but that’s one of the only two things I’m doing differently from Ben
Code is down:
bool FBullCowGame::IsGuessLowercase(FString Guess) const //Check if the guess string contains only alphabetical characters
{
if (Guess.length() <= 1) {
return true;
}
for (auto GLetter : Guess) //loop, iterating selection of the characters in 'Guess' and check if they're lowercase
{
if (!islower(GLetter)) { //check if the character in the guess is lowercase
return false;
}
}
return true;
}