Skip to content

Comment on Guess the daily Wordle in one try using the tweet distributionparent

Comments

It's not correct, I pasted the code from the article directly into ipython.

It filters out cases where the corresponding character in the answer is correct (a 'Y'), but not cases where it's used in another maybe (a 'M'). The latter requires keeping track of state in a way that this doesn't.

For example:

    evaluate_guess(answer="crest", guess="erase")
    'MYNYM'
Which is wrong, as stated above.
    evaluate_guess(answer="crest", guess="erese")
    'NYYYN'
Which is right, even though we only changed the middle letter of the guess, not either of the broken letters. In this case the filtering works correctly.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.