Fix 'liosa' bug (--word lossy)
This commit is contained in:
parent
50aa484baa
commit
b1acbea3b1
3
src/g.py
3
src/g.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user