Crate rusty_wordle

Source
Expand description

rusty_wordle contains an implementation of the Wordle game in Rust. The underlying dictionary and game rules are all based on the original game from the NY Times.

Structs§

Game
Struct for holding the logic and state for running a wordle game. Each instance is one round of Wordle for a given target word.
Guess
Struct to hold the result of a players guess, generated by calling play on a Game instance.

Enums§

Correctness
Enum to describe correctness of each character of a word guessed by a player when compared to a game’s target phrase.
GameError
Possible error that can happen when constructing or playing a Game
State
The state a Game can be in

Functions§

run
Play wordle via the terminal