wordletron 0.2.0

A solver for and command-line version of Wordle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io;

use rpassword::prompt_password;

use wordletron::*;

fn main() -> io::Result<()> {
    play_wordle(Some(loop {
        if let Ok(solution) = Word::try_from(prompt_password("solution: ")?) {
            break solution;
        } else {
            println!("solution must be 5 letters");
        }
    }))
}