change format order
This commit is contained in:
1 parent
47ab1d243e
commit
f73667b6a9
1 file changed
+3
-3
@@ -276,13 +276,13 @@ function check_guess() {
|
||||
done
|
||||
|
||||
for (( c=0; c<WIDTH; c++ )); do
|
||||
BOARD[$_row,$c]="${BOLD}${LETTER}${GREY} ${BOLD}${_guess:$c:1}${UNBOLD} "
|
||||
BOARD[$_row,$c]="${GREY}${BOLD}${LETTER} ${_guess:$c:1} ${UNBOLD}"
|
||||
|
||||
declare _char=${_guess:$c:1}
|
||||
|
||||
if [[ "${_char}" == "${_answer:$c:1}" ]]; then
|
||||
greens[c]="${_char}"
|
||||
BOARD[$_row,$c]="${LETTER}${GREEN} ${BOLD}${_char}${UNBOLD} "
|
||||
BOARD[$_row,$c]="${GREEN}${BOLD}${LETTER} ${_char} ${UNBOLD}"
|
||||
continue
|
||||
fi
|
||||
|
||||
@@ -290,7 +290,7 @@ function check_guess() {
|
||||
chars="${chars/${_char}/}"
|
||||
yellows[c]="${_char}" # volatile - stores previous row yellows
|
||||
YELLOWS[$_row,$c]="${_char}" # stores all yellow from all rounds
|
||||
BOARD[$_row,$c]="${LETTER}${YELLOW} ${BOLD}${_char}${UNBOLD} "
|
||||
BOARD[$_row,$c]="${YELLOW}${BOLD}${LETTER} ${_char} ${UNBOLD}"
|
||||
else
|
||||
POOL="${POOL/${_char}/_}"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user