My IsIsogram Implementation

Well, this is very simple and doesn’t have any comments to clutter space. Hopefully is simple enough to understand.

bool FBullCowGame::IsIsogram(const FString &Guess) const
{
	if (Guess.length() <= 1) return true;

	TMap<char, bool> LetterSeen;
	for (auto Letter : Guess)
	{
		Letter = tolower(Letter);
		if (LetterSeen[Letter]) return false;
		LetterSeen[Letter] = true;
	}
	return true;
}

Privacy & Terms