@t.krapp/sudoku-js
v1.0.4
Published
A simple sudoku solver
Downloads
1
Readme
@t.krapp/sudoku-js
A simple Sudoku solver.
Usage
import { solve } from "@t.krapp/sudoku-js";
// solve a game
const INCOMPLETE_GAME = (
"6..98...." +
"13......." +
".976..8.." +
// --------
".5....2.." +
"8.62.57.9" +
"..2....8." +
// --------
"..3..162." +
"......397" +
"....34..8"
);
for (let solution of solve(INCOMPLETE_GAME)) {
console.log(solution);
}