@ -46,6 +46,14 @@ void playHangman(char *wordToGuess) {
mistakes++;
}
// Check if the player guessed all the letters
if (strcmp(currentGuess,wordToGuess) == 0){
currentState(currentGuess, mistakes);
printf("Bravo! You guessed the word: %s \n", wordToGuess);
break;