don't highlight a stats bar after a loss
Since progress is saved before the final reveal, save_result runs with ROW still on the last row, so losing on the sixth guess highlighted the "6" bar as if the game had been won. Only highlight after a win. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eccee4d3f1
commit
5bafab3e10
1 file changed
+2
-1
@@ -559,7 +559,8 @@ function render_stats() {
|
|||||||
|
|
||||||
axis=$(( i+1 ))
|
axis=$(( i+1 ))
|
||||||
|
|
||||||
if [[ "${ROW}" == "${i}" ]]; then
|
# Highlight the bar for this game's guess count, only if it was won
|
||||||
|
if [[ $WIN == 5 && "${ROW}" == "${i}" ]]; then
|
||||||
echo "$axis│${LETTER_GR}$bar${RESET} $value"
|
echo "$axis│${LETTER_GR}$bar${RESET} $value"
|
||||||
else
|
else
|
||||||
echo "$axis│$bar $value"
|
echo "$axis│$bar $value"
|
||||||
|
|||||||
Reference in new issue
Block a user