void UBullCowCartridge::ProcessInput(FString Input)
{
if (HiddenWord == Input)
{
PrintLine(TEXT("You got it."));
}
else
{
if (Input.Len() != HiddenWord.Len())
{
PrintLine(TEXT("\nEnter a %i letter word."), HiddenWord.Len());
}
Lives--;
PrintLine(TEXT("\nTry again. You have %i lives left."), Lives);
}
}
1 Like
Nice job!