wordletron

Crates.iowordletron
lib.rswordletron
version0.2.0
sourcesrc
created_at2022-01-26 06:33:55.848907
updated_at2022-04-05 06:20:16.814738
descriptionA solver for and command-line version of Wordle
homepage
repositoryhttps://github.com/chrisnc/wordletron
max_upload_size
id521357
size116,150
Chris Copeland (chrisnc)

documentation

https://docs.rs/wordletron

README

Wordletron

This is a Rust crate for working with Wordle. It includes programs for playing the game, solving a game interactively, and simulating all games using the same strategy the interactive solver uses.

The solver is not very sophisticated; it just suggests guesses that minimize the maximum number of answers that would remain after making a given guess, over all answers that are still possible with the clues so far. If there is a tie, it will then choose words that minimize the average number of answers that would remain. If any of the guesses that are best by these criteria are also in the set of remaining answers, it will suggest only these.

Installing

Run cargo install wordletron.

Playing wordle

Just run wordle.

Solving wordle

Run solve-wordle. Input your guesses as prompted, and input your clues using the letters b for black, y for yellow, and g for green (case-insensitive), in the order they appear for the most recent guess. The program will show the answers that remain and the best guesses to make next to reduce this set by as much as possible in the worst case.

Commit count: 18

cargo fmt