sudoku-rust
v0.1.1
Published
Sudoku Solver from a gist I had made in 2019 https://gist.github.com/yoyomo/a694d9e0add94537728b413bdf961064
Downloads
5
Readme
Sudoku Solver written in Rust!
use as
solve_sudoku([
[8, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 3, 6, 0, 0, 0, 0, 0],
[0, 7, 0, 0, 9, 0, 2, 0, 0],
[0, 5, 0, 0, 0, 7, 0, 0, 0],
[0, 0, 0, 0, 4, 5, 7, 0, 0],
[0, 0, 0, 1, 0, 0, 0, 3, 0],
[0, 0, 1, 0, 0, 0, 0, 6, 8],
[0, 0, 8, 5, 0, 0, 0, 1, 0],
[0, 9, 0, 0, 0, 0, 4, 0, 0],
];
);
where 0
is unanswered.
It will return a complete array (non-zeros) if the answer was found
Javascript
use solve_sudoku_js