Trait sudoku_variants::solver::strategy::Strategy [−][src]
A trait for strategies, which use logical reasoning to restrict the possibilities of a Sudoku.
Required methods
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
Applies this strategy to the given Sudoku. The strategy may rely on and
modify the information in the given sudoku_info
. This instance is
given to other strategies that participate in the solution and/or
future iterations of the same strategy. It can thus be used to
communicate insights.
This method shall return true
if and only if something has changed,
that is, a digit has been entered or an option has been removed.
Implementors
impl Strategy for NakedSingleStrategy
[src]
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
impl Strategy for NoStrategy
[src]
fn apply(&self, _: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
impl Strategy for OnlyCellStrategy
[src]
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
impl<F: Fn(usize) -> usize> Strategy for TupleStrategy<F>
[src]
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
impl<FC, FA, S> Strategy for BoundedCellsBacktrackingStrategy<FC, FA, S> where
FC: Fn(usize) -> usize,
FA: Fn(usize) -> Option<usize>,
S: Strategy,
[src]
FC: Fn(usize) -> usize,
FA: Fn(usize) -> Option<usize>,
S: Strategy,
fn apply(&self, sudoku_info: &mut SudokuInfo<impl Constraint + Clone>) -> bool
[src]
impl<FO, FA, S> Strategy for BoundedOptionsBacktrackingStrategy<FO, FA, S> where
FO: Fn(usize) -> usize,
FA: Fn(usize) -> Option<usize>,
S: Strategy,
[src]
FO: Fn(usize) -> usize,
FA: Fn(usize) -> Option<usize>,
S: Strategy,