Fixed orange highlight overwriting green highlight in wordle game.
This commit is contained in:
parent
a29eba70f0
commit
6a35049609
|
@ -113,7 +113,10 @@ function play(guess, context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wordle.word.includes(letter)) {
|
if (wordle.word.includes(letter)) {
|
||||||
|
if (wordle.letters.get(letter) !== true) {
|
||||||
wordle.letters.set(letter, false);
|
wordle.letters.set(letter, false);
|
||||||
|
}
|
||||||
|
|
||||||
return [letter, alreadySeen ? null : false]; // repeating letter in the wrong place is not highlighted
|
return [letter, alreadySeen ? null : false]; // repeating letter in the wrong place is not highlighted
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue