Wordle in Rust

A Rust library and cli for Wordle. Inspired by Wordle in Bash

Install

cargo install wordler

Play

wordler

Play Demo

Basic Usage

```rust use wordler::dictionary::EnglishDictionary; use wordler::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), } ```