#wordle #solver #algorithm #cli

app wordle_solver_

A fairly simple Wordle solver algorithm

4 releases (stable)

2.0.0 Apr 10, 2022
1.0.5 Mar 15, 2022
0.1.0 Mar 15, 2022

#1752 in Command line utilities

MIT license

14KB
146 lines

WordleSolver

🟩 A simple algorithm to solve Wordle puzzles.

Installation

cargo install wordle_solver_

Usage

In order to represent the pattern below in my program, you can use the following keywords: B(Black), G(Green) and O(Orange).

pattern

The input of the program should be c-O r-B a-B t-B e-B. You need to associate each letter with your status / color and try to use to use the outputs of the program as the possible inputs in the game. Hopefully, you get good patterns to make the list of words as short as possible.

Explanations

With the Wordle dictionary on hands, I could write a fairly simple algorithm to filter the entire list of words. I didn't measure, but I'm pretty sure this algorithm is very inneficient and certainly there are plenty of better implementations of a Wordle Solver. In order to take a little bit more advantage, try to use some good opening words, such as "crate",, "soare" or "crane". If you want to know about information theory in the context of Wordle solving algorithms, watch this.

Maybe in the near future, I could improve my algorithm precision by taking advantage of the list of common word and letter frequency, so I can show more precise and reliable results.

License

This project is licensed under the MIT license.

No runtime deps