A solver for the popular Wordle game written in Rust. It does not attempt to be the most efficient solver possible but tries to avoid using obscure words. The aim is to produce more "human" solutions.
The solver plays in hard mode, i.e. any revealed information must be used in subsequent guesses. It is able to solve most but not all wordles in 6 guesses or fewer.
To try out the interactive solver run:
cargo run
To check the performance of the algorithm (in terms of guesses needed) run:
cargo run --bin bench-solver --release
The solver uses a frequency sorted list of words generated from the wordle 5-letter word dictionary and a general purpose word frequency list. This generated file is part of the repository but if needed it can be regenerated by running the following:
cargo run --bin generate-word-list
Licensed under either the Apache or MIT license at your option. See LICENSE-APACHE and LICENSE-MIT for details.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you shall be dual licensed as above, without any additional terms or conditions.
The Wordle Dictionary is taken from the source code of the original Wordle game.
The Frequency List is taken from Adam Kilgarriff's lists based on the British National Corpus.