rowdle

Crates.iorowdle
lib.rsrowdle
version0.2.1
sourcesrc
created_at2024-07-13 12:13:36.367325
updated_at2024-07-13 19:30:12.455048
descriptionA Wordle backend in Rust
homepage
repository
max_upload_size
id1302298
size52,996
Kival Mahadew (KivalM)

documentation

README

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));
Commit count: 0

cargo fmt