+ 2

How do I solve double letter word problem in wordle with C?

https://replit.com/@3E06CHEUNG/Wordle-2-private#main.c Here’s the link to the programme of wordle Word to be guessed: FIELD My guess word: EFIED According to wordle, the letter that is correctly guessed but is in the incorrect position would turn yellow. My bug is that “E” is supposed to be guessed once only so if the E in my guessed word is in the incorrect position only 1 “E” would be required to turn yellow but now I have two “E”s in my guess word and both of them turn yellow. Want some help on this ty

29th Nov 2023, 5:03 PM
Leapardbreeze - avatar
2 Answers
+ 3
The logic of the function Compare cannot work with multiple letters. I recommend you to develop a logic plan on the paper first.
29th Nov 2023, 9:05 PM
JaScript - avatar
+ 1
I have only rewritten the function Compare and all seems to work fine. Here is the code, of course if you don‘t know how to continue and already like to analyze that: https://sololearn.com/compiler-playground/c1NijqnzsFkr/?ref=app
30th Nov 2023, 10:58 AM
JaScript - avatar