Talk:Wordle comparison: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


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? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 10:01, 16 February 2022 (UTC)
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? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 10:01, 16 February 2022 (UTC)

:: Yes, you mark all the greens first, then the yellows in a separate loop.

:: [https://metzger.media/games/wordle-archive/ This version of Wordle] has identical behaviour to the original, but lets you set up test cases via the "Custom Word" option. [https://metzger.media/games/custom-word/?puzzle=44110 Here is a test case] where the solution is BULLY.

--[[User:GordonCharlton|GordonCharlton]] ([[User talk: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. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 12:27, 16 February 2022 (UTC)

Latest revision as of 12:27, 16 February 2022

unclear

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)