HugoBG #3
4
pendu.c
4
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user