3 unstable releases
0.2.1 | Jul 13, 2024 |
---|---|
0.2.0 | Jul 13, 2024 |
0.1.0 | Jul 13, 2024 |
#192 in Games
24 downloads per month
15KB
298 lines
Rowdle
A simple, fast and lightweight backend for wordle-based games. Think of it as a wordle clone able to do more than just words, loldle, numberdle, etc. (See the examples directory for some of the possibilities)
Installation
cargo add rowdle
Usage
// initialize a game with 5 letters and the word "hello" as the target
// the word list is a list of possible words that the target can be
let mut game = rowdle::Game::new(5, "guess", vec![
"hello",
"world",
"rust",
"rowdl",
"wordl",
]);
let guess = "world";
let result = game.guess(guess);
println!("{:?}", result.board(None,None));
Dependencies
~250–700KB
~16K SLoC