Browse Source

super hard words in list

remotes/origin/Saba
Saba Fazlali 11 months ago
parent
commit
548df522ad
  1. 26
      src/main/c/Hangman/word_selector.c

26
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];

Loading…
Cancel
Save