A Rust library and cli for Wordle. Inspired by Wordle in Bash
cargo install wordler
wordler
```rust use wordlers::dictionary::EnglishDictionary; use wordlers::wordle::{Wordle, PlayResult};
let dictionary = EnglishDictionary::new().unwrap(); let mut wordle = Wordle::new(&dictionary); let playresult = wordle.play("dream"); match playresult { Ok(playresult) => { println!("{}", playresult); match playresult { PlayResult::YouWon() => std::process::exit(0), PlayResult::YouLost() => std::process::exit(1), PlayResult::TurnResult() => {} } } Err(e) => println!("{}", e), } ```