generated from PlexSheep/rs-base
automatic cargo CI changes
This commit is contained in:
parent
94d16b345f
commit
3f60238c07
|
@ -1,20 +1,18 @@
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
// #![warn(missing_docs)]
|
// #![warn(missing_docs)]
|
||||||
#![warn(missing_debug_implementations)]
|
#![warn(missing_debug_implementations)]
|
||||||
use std::io::{Read, Write};
|
use std::io::Write;
|
||||||
|
|
||||||
use anyhow::anyhow;
|
use anyhow::anyhow;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use libpt::log::*;
|
use libpt::log::*;
|
||||||
use wordle_analyzer::error::GameError;
|
use wordle_analyzer::error::GameError;
|
||||||
use wordle_analyzer::game::response::GuessResponse;
|
use wordle_analyzer::game::response::GuessResponse;
|
||||||
use wordle_analyzer::game::Game;
|
|
||||||
use wordle_analyzer::wlist::builtin::BuiltinWList;
|
use wordle_analyzer::wlist::builtin::BuiltinWList;
|
||||||
use wordle_analyzer::wlist::word::Word;
|
use wordle_analyzer::wlist::word::Word;
|
||||||
use wordle_analyzer::{self, game};
|
use wordle_analyzer::{self, game};
|
||||||
|
|
||||||
use colored::Colorize;
|
|
||||||
|
|
||||||
#[derive(Parser, Clone, Debug)]
|
#[derive(Parser, Clone, Debug)]
|
||||||
#[command(version, about, long_about, author)]
|
#[command(version, about, long_about, author)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
|
@ -83,7 +81,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_word(cli: &Cli, step: usize) -> anyhow::Result<Word> {
|
fn get_word(_cli: &Cli, step: usize) -> anyhow::Result<Word> {
|
||||||
let mut word = Word::new();
|
let mut word = Word::new();
|
||||||
let stdin = std::io::stdin();
|
let stdin = std::io::stdin();
|
||||||
let mut stdout = std::io::stdout();
|
let mut stdout = std::io::stdout();
|
||||||
|
|
|
@ -42,7 +42,7 @@ impl GuessResponse {
|
||||||
evaluation: status,
|
evaluation: status,
|
||||||
step,
|
step,
|
||||||
finish,
|
finish,
|
||||||
win
|
win,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ pub const DEFAULT_WORD_LENGTH: usize = 5;
|
||||||
/// Default amount of guesses per game
|
/// Default amount of guesses per game
|
||||||
pub const DEFAULT_MAX_STEPS: usize = 6;
|
pub const DEFAULT_MAX_STEPS: usize = 6;
|
||||||
|
|
||||||
pub mod error;
|
|
||||||
#[cfg(feature = "bench")]
|
#[cfg(feature = "bench")]
|
||||||
pub mod bench;
|
pub mod bench;
|
||||||
|
pub mod error;
|
||||||
#[cfg(feature = "game")]
|
#[cfg(feature = "game")]
|
||||||
pub mod game;
|
pub mod game;
|
||||||
#[cfg(feature = "solvers")]
|
#[cfg(feature = "solvers")]
|
||||||
|
|
Loading…
Reference in New Issue