if (bGameOver)
{
ClearScreen();
SetupGame();
}
else
{
if (HiddenWord != Input)
{
PrintLine(TEXT("You guessed Wrong"));
int32 a = --PlayerLives;
if (Input.Len() != HiddenWord.Len())
{
PrintLine(TEXT("The word is %i charactere long"), HiddenWord.Len()); //magic number removed
PrintLine(TEXT("You have %i Lives Left"), a);
}
}
else
{
PrintLine(TEXT("You have won!"));
}
if (PlayerLives <= 0)
{
EndGame();
}
}