Algorithm to solve Wordle correctly 100% of the time within 6 attempts
© Zulkarnine, 2022.
Algorithm to solve Wordle 100% of the time within 6 attempts.
- You can go ahead and run
main.pyto run it for all 2315 Wordle words and it solves 100% of them correctly within 6 attempts.
Example output:
Ran: 2315 games.
Solved: 2315/2315 = 100.00%
- You can also run
solver.pyto get a sense of how it’s guessing and what is theWordlegame simulation returning. (I.e. the colored blocks)
Example output: