feat: parallel web solving

This commit is contained in:
2026-08-23 20:19:26 +02:00
parent 46e977acf5
commit 30ba157d43
22 changed files with 116 additions and 3497 deletions
+5
View File
@@ -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,