HugoBG #3

Merged
Hugo BRANCO-GOMES merged 8 commits from HugoBG into master 2024-10-25 16:51:57 +02:00
Showing only changes of commit 967494d328 - Show all commits

View File

@ -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);
}