sudoku_solver/solver/single_digit_patterns/
mod.rs

1mod rectangle_elimination;
2mod skyscraper;
3mod two_string_kite;
4
5use crate::SudokuSolver;
6
7use super::return_if_some;
8
9pub fn solve_two_string_kite(sudoku: &SudokuSolver) -> Option<crate::Step> {
10    for value in 1..=9 {
11        return_if_some!(two_string_kite::search_two_string_kite(sudoku, value));
12    }
13    None
14}
15
16pub fn solve_skyscraper(sudoku: &SudokuSolver) -> Option<crate::Step> {
17    for value in 1..=9 {
18        return_if_some!(skyscraper::search_skyscraper(sudoku, value));
19    }
20    None
21}
22
23pub fn solve_rectangle_elimination(sudoku: &SudokuSolver) -> Option<crate::Step> {
24    for value in 1..=9 {
25        return_if_some!(rectangle_elimination::search_rectangle_elimination(
26            sudoku, value
27        ));
28    }
29    None
30}