When we were doing the challenge for extra enumerators I came up with “HAS_CAPS” rather than IsLowerCase and I wanted to stick with it because; after all, it was my brain child. So I coded this, if it could be more efficient please let me know.
bool FBullCowGame::HAS_CAPS(FString Guess) const
{
for (auto CAPS_IN : Guess)
{
if (isupper(CAPS_IN))
{
return false;
}
else
{
return true;
}
}
return true;
}