Fix 'liosa' bug (--word lossy)

This commit is contained in:
John 2022-02-12 11:01:30 -06:00
parent 50aa484baa
commit b1acbea3b1

View File

@ -88,10 +88,11 @@ def wordbox(word):
line[i] = 2 line[i] = 2
hints[i] = 2 hints[i] = 2
wordlist[i] = 0 wordlist[i] = 0
h += word[i]
# Yellow pass # Yellow pass
for i in range(len(word)): for i in range(len(word)):
if word[i] in wordlist: if wordlist[i] and word[i] in wordlist:
line[i] = 1 line[i] = 1
# Mark as hinted (wrong place) # Mark as hinted (wrong place)
hints[wordlist.index(word[i])]= 1 hints[wordlist.index(word[i])]= 1