sudoku_rs

Crates.iosudoku_rs
lib.rssudoku_rs
version0.2.3
sourcesrc
created_at2019-06-03 03:08:57.493446
updated_at2019-06-08 13:37:26.973275
descriptiona package for sudoku in pure rust
homepage
repositoryhttps://github.com/laxect/sudoku-rs
max_upload_size
id138613
size25,854
ギャラ (laxect)

documentation

README

sudoku-rs

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

  • dfs solve
  • unique check
  • sudoku grade
  • sudoku gen
Commit count: 64

cargo fmt