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

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