From 8d92cfe57d53870f150066097f7add4aa02fad99 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 12 Feb 2025 19:21:14 +0000 Subject: [PATCH] fix strict hard mode pool bug with double letters --- wordle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wordle b/wordle index ef792db..0941a76 100755 --- a/wordle +++ b/wordle @@ -318,9 +318,8 @@ function check_guess() { yellows[c]="${_char}" # volatile - stores previous row yellows YELLOWS[$_row,$c]="${_char}" # stores all yellow from all rounds BOARD[$_row,$c]="${YELLOW}${BOLD}${LETTER} ${_char} ${UNBOLD}" - else - POOL="${POOL/${_char}/_}" fi + [[ " ${yellows[*]} " =~ ${_char} ]] && continue [[ " ${greens[*]} " =~ ${_char} ]] && continue POOL="${POOL/${_char}/_}"