From 548df522ad8b3a1ecc51c8608d1f17e36073c07b Mon Sep 17 00:00:00 2001 From: Saba Fazlali Date: Thu, 8 Feb 2024 23:31:39 +0100 Subject: [PATCH] super hard words in list --- src/main/c/Hangman/word_selector.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/main/c/Hangman/word_selector.c b/src/main/c/Hangman/word_selector.c index ec9c547..ed6d2ac 100644 --- a/src/main/c/Hangman/word_selector.c +++ b/src/main/c/Hangman/word_selector.c @@ -48,6 +48,30 @@ char wordsList_hard[NUM_WORDS][MAX_WORD_LENGTH + 1] = { "quarter" }; +// super hard words +char wordsList_super_hard[NUM_WORDS][MAX_WORD_LENGTH + 1] = { + "Cacophony", + "Rambunctious", + "Serendipity", + "Resilience", + "Discombobulate", + "Pernicious", + "Eccentricity", + "Mellifluous", + "Ineffable", + "Obfuscate", + "Quixotic", + "Paradoxical", + "Esoteric", + "Perspicacious", + "Indubitable", + "Incandescent", + "Vicissitude", + "Juxtaposition", + "Exacerbate", + "Epiphany" +}; + char* selectRandomWord(int difficulty) { // pick a random number and assign it to index of wordsList_easy array @@ -59,6 +83,8 @@ char* selectRandomWord(int difficulty) { return wordsList_easy[randomIndex]; case 2: return wordsList_hard[randomIndex]; + case 3: + return wordsList_super_hard[randomIndex]; default: printf("Invalid difficulty level. Using easy difficulty.\n"); return wordsList_easy[randomIndex];