feat: parallel web solving
This commit is contained in:
@@ -7,18 +7,23 @@ use crate::pattern::Pattern;
|
||||
use indicatif::ParallelProgressIterator;
|
||||
use rayon::iter::{ParallelBridge, ParallelIterator};
|
||||
|
||||
#[cfg(feature = "wasm-bindgen")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::word_list::WordList;
|
||||
|
||||
use derive_more::Display;
|
||||
use tabular::{Row, Table};
|
||||
|
||||
#[derive(Clone)]
|
||||
#[cfg_attr(feature = "wasm-bindgen", derive(Serialize, Deserialize))]
|
||||
pub struct Guess {
|
||||
pub pattern: Pattern,
|
||||
pub information_gained: f64,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[cfg_attr(feature = "wasm-bindgen", derive(Serialize, Deserialize))]
|
||||
pub struct Solver {
|
||||
valid_words: WordList,
|
||||
possible_solutions: WordList,
|
||||
|
||||
Reference in New Issue
Block a user