Skip to content

Commit

Permalink
hang_man_11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bacbahieu committed Mar 15, 2024
1 parent c456b67 commit 458678f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AdvProg_L3-HangMan/hangman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ void updateSecretWord(string &secretWord, const char ch, const string &word)

void updateEnteredChars(const char ch, string &chars)
{
chars += " ";
if (!chars.empty())
{
chars += ' ';
}
chars += ch;
chars += " ";
}

void updateIncorrectGuess(int &incorrectGuess)
Expand Down

0 comments on commit 458678f

Please sign in to comment.