If you get stuck solving Wordle games and are a bit of a nerd, it could end up like this.
- Guess 3 or 4 times. (If you guess fewer times, you will have to add more placeholders and more sampling chunks).
- Enter all "grey" characters/letters in the
df
ofstop_ch
- Adjust the resampling chunk accordingly. That is, as soon as you solved "green" characters/letters, enter them in the string with the
%s
placeholders. The%s
placeholders represent the unsolved charcaters/letters. At those positions, all possible letters (without thestop_ch
characters) are resampled with replacement.
That's it. In the end, you will get a list of a few possible words (currently, including names and places).
That pattern that drove me crazy and why I had to use gentle brute-force approaches:
Wordle 201 5/6
🟨⬛⬛⬛⬛
⬛🟩⬛⬛⬛
⬛🟩🟩⬛⬛
⬛🟩🟩⬛⬛
🟩🟩🟩🟩🟩
Maybe, I'm going to build a shiny app on this—we'll see.
Happy "wordling"!
Update: Python script in the making…