"You have: 1 lives left!"
This commit is contained in:
Aren 2017-02-26 16:47:47 +01:00 committed by GitHub
parent 78a5a4281c
commit e2284a7bc5

View file

@ -225,7 +225,12 @@ namespace ShiftOS.WinForms.Applications
{
guessedCharacters = guessedCharacters + charGuessed;
lives--;
lbllives.Text = "You have: " + lives + " lives left!";
if (lives == 1)
{
lbllives.Text = "You have 1 life left! Be careful...";
} else {
lbllives.Text = "You have " + lives + " lives left!";
}
if (lives == 0)
{
tbguess.Visible = false;