if (bGameOver)
{
ClearScreen();
InitGame();
}
else //player Guess eval
{
if (Input == HiddenWord)
{
PrintLine(TEXT("Yep, thats right\n"));
PrintLine(TEXT("and with %i chances left!"), Lives);
EndGame();
}
else
{
--Lives;
PrintLine(TEXT("Nope, nice try though. \nTry Again!"));
PrintLine(TEXT("Now you only have %i chances left"), Lives);
}
if (Input.Len() != HiddenWord.Len())
{
PrintLine(TEXT("Related - didn't I say it is %i characters?"), HiddenWord.Len());
}
if (Lives == 0)
{
PrintLine(TEXT("You are all out of chances.\nYou Lose!"));
EndGame();
}
}
}