@t.krapp/sudoku-js

    1.0.4 • Public • Published

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

    Install

    npm i @t.krapp/sudoku-js

    DownloadsWeekly Downloads

    2

    Version

    1.0.4

    License

    GPL-3.0-or-later

    Unpacked Size

    55.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar