From d0197b20aab5b53b3bf4f7eae12658a88aff12a8 Mon Sep 17 00:00:00 2001 From: Saba Fazlali Date: Thu, 8 Feb 2024 23:36:29 +0100 Subject: [PATCH] super hard level added to game --- src/main/c/Hangman/playHangman.c | 3 ++- src/main/c/Hangman/word_selector.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/c/Hangman/playHangman.c b/src/main/c/Hangman/playHangman.c index 166a23b..4aa6739 100644 --- a/src/main/c/Hangman/playHangman.c +++ b/src/main/c/Hangman/playHangman.c @@ -19,9 +19,10 @@ void playHangman() { displayRules(); - printf("choose the difficulty level: (1 or 2)\n"); + printf("choose the difficulty level: (1, 2 or 3)\n"); printf("1. Easy \n"); printf("2. Hard \n"); + printf("3. Super hard \n"); scanf("%d", &difficulty); wordToGuess = selectRandomWord(difficulty); diff --git a/src/main/c/Hangman/word_selector.c b/src/main/c/Hangman/word_selector.c index ed6d2ac..2edbc1c 100644 --- a/src/main/c/Hangman/word_selector.c +++ b/src/main/c/Hangman/word_selector.c @@ -86,7 +86,7 @@ char* selectRandomWord(int difficulty) { case 3: return wordsList_super_hard[randomIndex]; default: - printf("Invalid difficulty level. Using easy difficulty.\n"); + printf("Invalid difficulty level. We choose easy level for you.\n"); return wordsList_easy[randomIndex]; } } \ No newline at end of file