diff --git a/src/bin/game/cli.rs b/src/bin/game/cli.rs index 4f9dd2b..61e1fad 100644 --- a/src/bin/game/cli.rs +++ b/src/bin/game/cli.rs @@ -1,20 +1,18 @@ #![warn(clippy::all)] // #![warn(missing_docs)] #![warn(missing_debug_implementations)] -use std::io::{Read, Write}; +use std::io::Write; use anyhow::anyhow; use clap::Parser; use libpt::log::*; use wordle_analyzer::error::GameError; use wordle_analyzer::game::response::GuessResponse; -use wordle_analyzer::game::Game; + use wordle_analyzer::wlist::builtin::BuiltinWList; use wordle_analyzer::wlist::word::Word; use wordle_analyzer::{self, game}; -use colored::Colorize; - #[derive(Parser, Clone, Debug)] #[command(version, about, long_about, author)] struct Cli { @@ -83,7 +81,7 @@ fn main() -> anyhow::Result<()> { Ok(()) } -fn get_word(cli: &Cli, step: usize) -> anyhow::Result { +fn get_word(_cli: &Cli, step: usize) -> anyhow::Result { let mut word = Word::new(); let stdin = std::io::stdin(); let mut stdout = std::io::stdout(); diff --git a/src/game/response.rs b/src/game/response.rs index e1fb615..5cd8919 100644 --- a/src/game/response.rs +++ b/src/game/response.rs @@ -42,7 +42,7 @@ impl GuessResponse { evaluation: status, step, finish, - win + win, } } diff --git a/src/lib.rs b/src/lib.rs index f5fc075..9d567e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,9 +7,9 @@ pub const DEFAULT_WORD_LENGTH: usize = 5; /// Default amount of guesses per game pub const DEFAULT_MAX_STEPS: usize = 6; -pub mod error; #[cfg(feature = "bench")] pub mod bench; +pub mod error; #[cfg(feature = "game")] pub mod game; #[cfg(feature = "solvers")]