Skip to content

Instantly share code, notes, and snippets.

@teukstrid
Created April 8, 2018 15:20
Show Gist options
  • Save teukstrid/7141d94e3c1bcee3ec194a0c1b7492a5 to your computer and use it in GitHub Desktop.
Save teukstrid/7141d94e3c1bcee3ec194a0c1b7492a5 to your computer and use it in GitHub Desktop.
EGuessStatus FBullCowGame::CheckGuessValidity(FString Guess) const
{
if (!IsIsogram(Guess))
{
return EGuessStatus::Not_Isogram;
}
else if (false)
{
return EGuessStatus::Not_Lowercase;
}
else if (Guess.length() != GetHiddenWordLenght())
{
return EGuessStatus::Wrong_Lenght;
}
else
{
return EGuessStatus::OK;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment