Talk:Wordle comparison

From Rosetta Code


What is the correct result for BULLY vs LOLLY? I would say it is probably
{ "grey" , "grey","green", "green","green"}, or possibly
{"yellow","grey","green", "grey" , "green"}, but almost certainly not the
{"yellow","grey","yellow","grey" , "green"} I'm getting, but I've never played the game.

I suspect you should mark all greens first, and then use a completely separate second loop to mark any yellows, as both my entries for bulls and cows and mastermind do? --Pete Lomax (talk) 10:01, 16 February 2022 (UTC)

Yes, you mark all the greens first, then the yellows in a separate loop.
This version of Wordle has identical behaviour to the original, but lets you set up test cases via the "Custom Word" option. Here is a test case where the solution is BULLY.

--GordonCharlton (talk) 11:16, 16 February 2022 (UTC)

Thanks. Phix updated, removed 6 copies of "lOLLY" since originally only meant to point out "LOLLY" wrong. --Pete Lomax (talk) 12:27, 16 February 2022 (UTC)