vidhanio / diswordle

discord wordle bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate letters show as yellow when they should be grey

Droobert opened this issue · comments

The issue:
In the Wordle web app, if you have found all of the placements for a given letter but also included extra unneeded copies of that letter, the incorrect placements of that letter will be grey. For example:
image

The bot currently does not function in this way, instead showing all incorrect placements of a letter as yellow, even if all correct placements have been found. For example (look at the i's and the e's, they are yellow when they should be grey):
image

The solution:
I suggest changing the behavior when deciding if the letters are colored yellow vs grey. If all possible correct instances of the letter have already been correctly placed in that word, then color the incorrect placements of that letter grey. Otherwise, color all incorrect placements of that letter yellow.

Hi!

This was fixed in my engine (which this bot uses) in vidhanio/wordle@2e6780c

I will update the bot to the new engine with the next release. :)

image

Oh, cool! Good to hear.

This issue should be resolved now, thank you for the report! :)