I am aware that this conditional fails to do what its expected from it. In the course you typed IF(Letterseen[Letter]), but to be honest its a conditional which is evaluating and expecting a true value in order to proceed. If the value isn’t even there why is a) populating the map, b) assuming a true value.
bool FBullCowGame::isisometric(ftext GuessText)
{TMap <char, bool> Letterseen;
for (auto Letter : GuessText)
{
Letter = tolower(Letter);
if (Letterseen[Letter])
{
return false;
}
else
{
Letterseen[Letter] = true;
}
}
return true;
}