Send to a Friend

LostInParadise's avatar

Programmers, can you spot the error in this Wordle program?

Asked by LostInParadise (31915points) January 30th, 2023

As a programming exercise, I coded a function that would give the letter colors for a guess of a particular word. The program is not that long but it is not trivial.

I went online to see if I could find a similar program. I found this. You can see the code if you scroll down a little. Can you spot the error and give a counter-example that will not work?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.