fix strict hard mode pool bug with double letters

This commit is contained in:
adam committed 2025-02-12 19:21:14 +00:00
1 parent a7a19d33b6
commit 8d92cfe57d
1 file changed
+1 -2
+1 -2
View File
@@ -318,9 +318,8 @@ function check_guess() {
yellows[c]="${_char}" # volatile - stores previous row yellows yellows[c]="${_char}" # volatile - stores previous row yellows
YELLOWS[$_row,$c]="${_char}" # stores all yellow from all rounds YELLOWS[$_row,$c]="${_char}" # stores all yellow from all rounds
BOARD[$_row,$c]="${YELLOW}${BOLD}${LETTER} ${_char} ${UNBOLD}" BOARD[$_row,$c]="${YELLOW}${BOLD}${LETTER} ${_char} ${UNBOLD}"
else
POOL="${POOL/${_char}/_}"
fi fi
[[ " ${yellows[*]} " =~ ${_char} ]] && continue [[ " ${yellows[*]} " =~ ${_char} ]] && continue
[[ " ${greens[*]} " =~ ${_char} ]] && continue [[ " ${greens[*]} " =~ ${_char} ]] && continue
POOL="${POOL/${_char}/_}" POOL="${POOL/${_char}/_}"