diff --git a/src/main/c/Hangman/playHangman.c b/src/main/c/Hangman/playHangman.c index 20380e5..0fe32f7 100644 --- a/src/main/c/Hangman/playHangman.c +++ b/src/main/c/Hangman/playHangman.c @@ -41,5 +41,11 @@ void playHangman(char *wordToGuess) { } } + // Update mistakes (if the guess is wrong) + if(!found){ + mistakes++; + } + + } } \ No newline at end of file