sudoku/strategy.rs
1//! Tools for solving sudokus with strategies that humans use.
2//!
3//! This module contains the [`StrategySolver`] that mimics human
4//! approaches to sudoku solving for hinting at possible moves and grading difficulty.
5//! The `StrategySolver` together with the [`Strategy`] enum form the
6//! core of this module. All deductions are recorded and can be obtained through
7//! the appropriate methods.
8//!
9//! The strategies contained here are typically much slower than the use of
10//! just a few simple strategies together with backtracking. While efforts are
11//! made to optimize it, expect the solver to be at least an order of magnitude
12//! slower than the fast solver.
13
14pub mod deduction;
15mod solver;
16mod strategies;
17pub(crate) mod utils;
18
19pub use self::deduction::Deduction;
20pub use self::solver::StrategySolver;
21pub use self::strategies::Strategy;