From 967494d328aed9432a90f01b61452ea3f49a5c5e Mon Sep 17 00:00:00 2001 From: branco-g Date: Fri, 25 Oct 2024 16:19:50 +0200 Subject: [PATCH] mis a jour --- pendu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pendu.c b/pendu.c index dab3eda..831eb4f 100644 --- a/pendu.c +++ b/pendu.c @@ -142,10 +142,10 @@ void play_game(const char *chosen_word, int word_length, int letters_to_guess) { score = calculate_score(mistakes, start_time); //calcul le score en fonction des erreurs et du temps écoulé // Display win or lose message based on game outcome - if (guessed_correctly == letters_to_guess) + if (guessed_correctly == letters_to_guess) { apply_bonus(&score, tries); printf("Félicitations ! Vous avez deviné le mot : %s\n", chosen_word); - else { + } else { printf("Désolé, vous avez perdu. Le mot était : %s\n", chosen_word); display_hangman(MAX_TRIES); }