You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a guess contains the same letter twice, and one instance of the letter is in the correct place, the other letter should only be highlighted yellow if that letter does, in fact, appear twice in the target word.
For example, if the target word is "SMILY" and a user guesses "SKILL", the first L should be highlighted green and the second should not be highlighted at all.
Attached is an example from Powerlanguage's implementation demonstrating specified behavior, and a screenshot of the bug in this program. Notice the first "T" in "TRIST" is not highlighted yellow.
The text was updated successfully, but these errors were encountered:
You're right. I knew there was an issue but couldn't figure out what it was.
I guess the logic needs two rounds of comparisons between guess_word and selected_word, one to mark all green characters and then one to mark yellow characters if the corresponding index hasn't already been marked green.
You interested in doing the pull request for this issue?
If a guess contains the same letter twice, and one instance of the letter is in the correct place, the other letter should only be highlighted yellow if that letter does, in fact, appear twice in the target word.
For example, if the target word is "SMILY" and a user guesses "SKILL", the first L should be highlighted green and the second should not be highlighted at all.
Attached is an example from Powerlanguage's implementation demonstrating specified behavior, and a screenshot of the bug in this program. Notice the first "T" in "TRIST" is not highlighted yellow.
The text was updated successfully, but these errors were encountered: