Able to turn the expanded dict on and off with a variable
This commit is contained in:
parent
10eda8b208
commit
6dd46b46b1
@ -67,11 +67,14 @@ static const char _legal_words[][WORDLE_LENGTH + 1] = {
|
|||||||
"SCOOP", "EASEL", "LOONS", "CONIC", "SPANS", "SPIES", "PRIOR", "SALSA", "SELLS",
|
"SCOOP", "EASEL", "LOONS", "CONIC", "SPANS", "SPIES", "PRIOR", "SALSA", "SELLS",
|
||||||
"PILLS", "RISES", "RARES", "SNEER", "SOILS", "ARENA", "CASES", "CANAL", "SAILS",
|
"PILLS", "RISES", "RARES", "SNEER", "SOILS", "ARENA", "CASES", "CANAL", "SAILS",
|
||||||
"LASSO", "COCOA", "ERROR", "CALLS",
|
"LASSO", "COCOA", "ERROR", "CALLS",
|
||||||
|
#if (USE_EXPANDED_DICT != 1)
|
||||||
};
|
};
|
||||||
// These are words that'll never be used, but still need to be in the dictionary for guesses.
|
// These are words that'll never be used, but still need to be in the dictionary for guesses.
|
||||||
// Top 100K most common words from Wiktionary https://gist.github.com/h3xx/1976236
|
// Top 100K most common words from Wiktionary https://gist.github.com/h3xx/1976236
|
||||||
// Number of words found: 469
|
// Number of words found: 469
|
||||||
static const char _expanded_words[][WORDLE_LENGTH + 1] = {
|
static const char _expanded_words[][WORDLE_LENGTH + 1] = {
|
||||||
|
#endif
|
||||||
|
#if (USE_EXPANDED_DICT != 0)
|
||||||
"PARIS", "APRIL", "SPAIN", "EINEN", "ASCII", "EINER", "SEINE", "AINSI", "ALICE",
|
"PARIS", "APRIL", "SPAIN", "EINEN", "ASCII", "EINER", "SEINE", "AINSI", "ALICE",
|
||||||
"ALLES", "ALORS", "EINES", "ALLER", "PEINE", "PARCE", "CELLE", "CLARA", "ELLES",
|
"ALLES", "ALORS", "EINES", "ALLER", "PEINE", "PARCE", "CELLE", "CLARA", "ELLES",
|
||||||
"ELLEN", "OLISI", "ALLEN", "ISAAC", "APRES", "CROIS", "SANOI", "PASSE", "ELSIE",
|
"ELLEN", "OLISI", "ALLEN", "ISAAC", "APRES", "CROIS", "SANOI", "PASSE", "ELSIE",
|
||||||
@ -125,8 +128,13 @@ static const char _expanded_words[][WORDLE_LENGTH + 1] = {
|
|||||||
"NOONE", "SEPPI", "OPPIA", "SEALE", "LIPPI", "PELAS", "COCOS", "PLACA", "CONOR",
|
"NOONE", "SEPPI", "OPPIA", "SEALE", "LIPPI", "PELAS", "COCOS", "PLACA", "CONOR",
|
||||||
"LANCA", "OSASI", "ALOIS", "NAIRN", "PIENO", "SPASS", "SAONE", "ALNAR", "CARIA",
|
"LANCA", "OSASI", "ALOIS", "NAIRN", "PIENO", "SPASS", "SAONE", "ALNAR", "CARIA",
|
||||||
"PIENA",
|
"PIENA",
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if (USE_EXPANDED_DICT == 1)
|
||||||
|
static const char _expanded_words[][WORDLE_LENGTH + 1] = {};
|
||||||
|
#endif
|
||||||
|
|
||||||
static const uint16_t _num_unique_words = 155; // The _legal_words array begins with this many words where each letter is different.
|
static const uint16_t _num_unique_words = 155; // The _legal_words array begins with this many words where each letter is different.
|
||||||
static const uint16_t _num_words = (sizeof(_legal_words) / sizeof(_legal_words[0]));
|
static const uint16_t _num_words = (sizeof(_legal_words) / sizeof(_legal_words[0]));
|
||||||
static const uint16_t _num_expanded_words = (sizeof(_expanded_words) / sizeof(_expanded_words[0]));
|
static const uint16_t _num_expanded_words = (sizeof(_expanded_words) / sizeof(_expanded_words[0]));
|
||||||
|
@ -60,6 +60,13 @@
|
|||||||
#define WORDLE_MAX_ATTEMPTS 6
|
#define WORDLE_MAX_ATTEMPTS 6
|
||||||
#define USE_DAILY_STREAK false
|
#define USE_DAILY_STREAK false
|
||||||
|
|
||||||
|
/* USE_EXPANDED_DICT
|
||||||
|
* 0 = don't use it at all (saves 2.8KB of ROM)
|
||||||
|
* 1 = Include the expanded dict in answers
|
||||||
|
* 2 = Only include it in the dict for guessing, but it's never an answer
|
||||||
|
*/
|
||||||
|
#define USE_EXPANDED_DICT 2
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
WORDLE_LETTER_WRONG = 0,
|
WORDLE_LETTER_WRONG = 0,
|
||||||
WORDLE_LETTER_WRONG_LOC,
|
WORDLE_LETTER_WRONG_LOC,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user