Crates.io | rowdle |
lib.rs | rowdle |
version | 0.2.1 |
source | src |
created_at | 2024-07-13 12:13:36.367325 |
updated_at | 2024-07-13 19:30:12.455048 |
description | A Wordle backend in Rust |
homepage | |
repository | |
max_upload_size | |
id | 1302298 |
size | 52,996 |
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)
cargo add rowdle
// 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));