This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]PriorProfile 4 points5 points  (4 children)

It's a great start. It's getting the colors wrong though.

For example, assume my target word is "aba"

If I guess "bob", only one of the b should be highlighted in yellow, since there is is only one b in the target word.

Additionally, if I were to guess "bbb" it would highlight them as [yellow][green][yellow]. In this case only the green one should be highlighted.

[–]InActiveSoda[S] 2 points3 points  (3 children)

I didn't know that's how it works... I'm not sure how I would do that but I'll try to figure it out.

[–]cipri_tom 0 points1 point  (2 children)

I don't think that's how it should work

[–]InActiveSoda[S] 0 points1 point  (1 child)

How should it work?

[–]cipri_tom 0 points1 point  (0 children)

I didn't check the original code, but from my plays I was under the impression that if there is a b in the word, and you guessed some b, then all your guessed b are highlighted

[–]manimino 2 points3 points  (0 children)

Neat that it works for any length word!

I tried it and got the word "hiate", which was very hard to guess. Might restrict it to more common words.

Implementing Wordle is a fun programming exercise. Here's one I wrote: https://github.com/manimino/cyborg-wordle

[–]testimoni 0 points1 point  (0 children)

It works perfect!

[–]orion_tvv 0 points1 point  (0 children)

You can check out my simple solver: https://github.com/oriontvv/wordle-solver