Correctly handle double letters #5
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Reported here: https://twitter.com/andyhot/status/1485466040083619844?s=20
The issue occurs here: https://github.com/NullVoxPopuli/ember-wordle/blob/main/app/components/board/state/actions.ts#L108
So, because includes is used, if you guess double correct letters, they'll both have the same result (yellow or green), when a guess should only have one match per letter.
For example, if you guess
apple
, and the answer ispizza
, only the first p in apple should be highlightedThe text was updated successfully, but these errors were encountered: