mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
Made skipping a wrong letters a #define
This commit is contained in:
parent
b58d6c0a2e
commit
1b887aea2b
|
@ -167,7 +167,7 @@ static bool check_word(wordle_state_t *state) {
|
|||
}
|
||||
|
||||
static void update_known_wrong_letters(wordle_state_t *state) {
|
||||
|
||||
#if WORDLE_SKIP_WRONG_LETTERS
|
||||
for (size_t i = 0; i < WORDLE_LENGTH; i++) {
|
||||
if (state->word_elements_result[i] == WORDLE_LETTER_WRONG) {
|
||||
for (size_t j = 0; j < WORDLE_NUM_VALID_LETTERS; j++) {
|
||||
|
@ -176,6 +176,7 @@ static void update_known_wrong_letters(wordle_state_t *state) {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void display_attempt(uint8_t attempt) {
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
#define WORDLE_MAX_ATTEMPTS 6
|
||||
#define WORDLE_USE_DAILY_STREAK false
|
||||
#define WORDLE_ALLOW_NON_WORD_AND_REPEAT_GUESSES false // This allows non-words to be entered and repeat guesses to be made. It saves ~11.5KB of ROM.
|
||||
|
||||
#define WORDLE_SKIP_WRONG_LETTERS true // If true, already guessed letters that are known to be wrong will be skipped when cycling
|
||||
/* WORDLE_USE_RANDOM_GUESS
|
||||
* 0 = Don't allow quickly choosing a random quess
|
||||
* 1 = Allow using a random guess of any value that can be an answer
|
||||
|
|
Loading…
Reference in a new issue