Fixed orange highlight overwriting green highlight in wordle game.

This commit is contained in:
ThePendulum 2024-06-03 01:57:44 +02:00
parent a29eba70f0
commit 6a35049609
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ function play(guess, context) {
}
if (wordle.word.includes(letter)) {
if (wordle.letters.get(letter) !== true) {
wordle.letters.set(letter, false);
}
return [letter, alreadySeen ? null : false]; // repeating letter in the wrong place is not highlighted
}