generated from PlexSheep/rs-base
Merge branch 'master' of https://git.cscherr.de/PlexSheep/wordle-analyzer
cargo devel CI / cargo CI (push) Failing after 33s
Details
cargo devel CI / cargo CI (push) Failing after 33s
Details
This commit is contained in:
commit
e1ce53a0f9
|
@ -35,7 +35,12 @@ impl<WL: WordList> Game<WL> {
|
|||
/// # Errors
|
||||
///
|
||||
/// This function will return an error if .
|
||||
pub(crate) fn build(length: usize, precompute: bool, max_steps: usize, wlist: WL) -> anyhow::Result<Self> {
|
||||
pub(crate) fn build(
|
||||
length: usize,
|
||||
precompute: bool,
|
||||
max_steps: usize,
|
||||
wlist: WL,
|
||||
) -> anyhow::Result<Self> {
|
||||
let solution = wlist.rand_solution();
|
||||
let mut game = Game {
|
||||
length,
|
||||
|
@ -43,7 +48,7 @@ impl<WL: WordList> Game<WL> {
|
|||
max_steps,
|
||||
step: 0,
|
||||
solution,
|
||||
wordlist: wlist
|
||||
wordlist: wlist,
|
||||
};
|
||||
|
||||
Ok(game)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use rand::{seq::IteratorRandom};
|
||||
use rand::seq::IteratorRandom;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::ops::RangeBounds;
|
||||
|
|
Loading…
Reference in New Issue