Crates.io | sudoku_rs |
lib.rs | sudoku_rs |
version | 0.2.3 |
source | src |
created_at | 2019-06-03 03:08:57.493446 |
updated_at | 2019-06-08 13:37:26.973275 |
description | a package for sudoku in pure rust |
homepage | |
repository | https://github.com/laxect/sudoku-rs |
max_upload_size | |
id | 138613 |
size | 25,854 |
sudoku solve lib
sudoku solve
use sudoku_rs::{board, solver};
let mut b = board::Board::new();
let s = solver::DfsSolver::new();
let mut s = solver::DfsSolver::new();
s.solve(&mut b);
println!("{}", b);
unique
use sudoku_rs::{board, solver};
let mut b = board::Board::new();
let mut s = solver::DfsSolver::new();
assert!(!s.unique(&mut b).unwrap());
grade
use sudoku_rs::{board, grade};
let mut b = board::Board::new();
let g = grade::Grade::new();
let scores = g.grade(&mut b);
println!("{:?}", scores);
next to do