From 1b887aea2bc5b85be0184144a7eb89870ab06f92 Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Sun, 25 Aug 2024 10:03:38 -0400 Subject: [PATCH] Made skipping a wrong letters a #define --- movement/watch_faces/complication/wordle_face.c | 3 ++- movement/watch_faces/complication/wordle_face.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/movement/watch_faces/complication/wordle_face.c b/movement/watch_faces/complication/wordle_face.c index 6957d5b..945bb76 100644 --- a/movement/watch_faces/complication/wordle_face.c +++ b/movement/watch_faces/complication/wordle_face.c @@ -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) { diff --git a/movement/watch_faces/complication/wordle_face.h b/movement/watch_faces/complication/wordle_face.h index a29301e..7071c79 100644 --- a/movement/watch_faces/complication/wordle_face.h +++ b/movement/watch_faces/complication/wordle_face.h @@ -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