This is what I came up with to make isLowercase() work:
bool FBullCowGame::isLowercase(FString Guess) const
{
bool isLowercase = true;
for (auto letter : Guess) {
if (!islower(letter)) {
isLowercase = false;
break;
}
}
return isLowercase;
}
The method “islower(char)” makes for an easy way to check if a char is lowercase, making no need for the additional isLower() function suggested to be implemented.