diff --git a/wordle/wordle.c b/wordle/wordle.c index f5ed703b5a3cc8f01a1423069d5e9fcb417f9007..4baccd713d7ed108e022f6520b10d280ad7d8b04 100644 --- a/wordle/wordle.c +++ b/wordle/wordle.c @@ -158,6 +158,13 @@ void launch_game() { } } + if (key == KEY_BACKSPACE) { + if (current_try_letter_id > 0) { + current_try_letter_id -= 1; + tries[current_try_id][current_try_letter_id] = '\0'; + } + } + handle_controls(key); refresh(); }