1.0.4 • Published 4 years ago

@t.krapp/sudoku-js v1.0.4

Weekly downloads
1
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

@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);
}