My IsLowercase() implementation

bool FBullCowGame::IsLowercase(const FString Guess) const
{
    if (Guess.empty())
        return true;

    for(const char Letter : Guess)
    {
        if (!std::islower(Letter))
            return false;
    }

    return true;
}

Privacy & Terms