|
@ -48,6 +48,30 @@ char wordsList_hard[NUM_WORDS][MAX_WORD_LENGTH + 1] = { |
|
|
"quarter" |
|
|
"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) { |
|
|
char* selectRandomWord(int difficulty) { |
|
|
|
|
|
|
|
|
// pick a random number and assign it to index of wordsList_easy array |
|
|
// 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]; |
|
|
return wordsList_easy[randomIndex]; |
|
|
case 2: |
|
|
case 2: |
|
|
return wordsList_hard[randomIndex]; |
|
|
return wordsList_hard[randomIndex]; |
|
|
|
|
|
case 3: |
|
|
|
|
|
return wordsList_super_hard[randomIndex]; |
|
|
default: |
|
|
default: |
|
|
printf("Invalid difficulty level. Using easy difficulty.\n"); |
|
|
printf("Invalid difficulty level. Using easy difficulty.\n"); |
|
|
return wordsList_easy[randomIndex]; |
|
|
return wordsList_easy[randomIndex]; |
|
|