Swift-WordleSolver

Solve and analyze Wordle games. Command-line tool written in Swift

Example

Answer: PLUME

— “SKULL”
⬜️⬜️🟩🟨🟨
We learned…
β†’ 🟩 Matched “U” on #3.
β†’ 🟨 Contains “L” somewhere
β†’ 🟨 “L” will never appear on #5.
β†’ 🟨 “L” will never appear on #4.
β†’ ⬜️ Does NOT contain “S” anywhere
β†’ ⬜️ Does NOT contain “K” anywhere

— “LAUGH”
🟨⬜️🟩⬜️⬜️
We learned…
β†’ 🟩 Matched “U” on #3.
β†’ 🟨 Contains “L” somewhere
β†’ 🟨 “L” will never appear on #5.
β†’ 🟨 “L” will never appear on #4.
β†’ 🟨 “L” will never appear on #1.
β†’ ⬜️ Does NOT contain “S” anywhere
β†’ ⬜️ Does NOT contain “K” anywhere
β†’ ⬜️ Does NOT contain “H” anywhere
β†’ ⬜️ Does NOT contain “G” anywhere
β†’ ⬜️ Does NOT contain “A” anywhere

— “FLUTE”
⬜️🟩🟩⬜️🟩
We learned…
β†’ 🟩 Matched “U” on #3.
β†’ 🟩 Matched “L” on #2.
β†’ 🟩 Matched “E” on #5.
β†’ 🟨 Contains “L” somewhere
β†’ 🟨 “L” will never appear on #5.
β†’ 🟨 “L” will never appear on #4.
β†’ 🟨 “L” will never appear on #1.
β†’ ⬜️ Does NOT contain “T” anywhere
β†’ ⬜️ Does NOT contain “S” anywhere
β†’ ⬜️ Does NOT contain “K” anywhere
β†’ ⬜️ Does NOT contain “H” anywhere
β†’ ⬜️ Does NOT contain “G” anywhere
β†’ ⬜️ Does NOT contain “F” anywhere
β†’ ⬜️ Does NOT contain “A” anywhere

— “PLUME”
🟩🟩🟩🟩🟩
We learned…
β†’ 🟩 Matched “U” on #3.
β†’ 🟩 Matched “P” on #1.
β†’ 🟩 Matched “M” on #4.
β†’ 🟩 Matched “L” on #2.
β†’ 🟩 Matched “E” on #5.
β†’ 🟨 Contains “L” somewhere
β†’ 🟨 “L” will never appear on #5.
β†’ 🟨 “L” will never appear on #4.
β†’ 🟨 “L” will never appear on #1.
β†’ ⬜️ Does NOT contain “T” anywhere
β†’ ⬜️ Does NOT contain “S” anywhere
β†’ ⬜️ Does NOT contain “K” anywhere
β†’ ⬜️ Does NOT contain “H” anywhere
β†’ ⬜️ Does NOT contain “G” anywhere
β†’ ⬜️ Does NOT contain “F” anywhere
β†’ ⬜️ Does NOT contain “A” anywhere

How to Use

You will need to find a list of n-letter words, in a plain .txt file.
Capitalization does not matter. I use this one.

GitHub

View Github