From b1acbea3b1ee4c153c062f3906df6c6f1da166f1 Mon Sep 17 00:00:00 2001 From: Jeeb Date: Sat, 12 Feb 2022 11:01:30 -0600 Subject: [PATCH] Fix 'liosa' bug (--word lossy) --- src/g.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g.py b/src/g.py index 6fe5e19..fde245d 100644 --- a/src/g.py +++ b/src/g.py @@ -88,10 +88,11 @@ def wordbox(word): line[i] = 2 hints[i] = 2 wordlist[i] = 0 + h += word[i] # Yellow pass for i in range(len(word)): - if word[i] in wordlist: + if wordlist[i] and word[i] in wordlist: line[i] = 1 # Mark as hinted (wrong place) hints[wordlist.index(word[i])]= 1