1.0.5 • Published 3 years ago

@thoughtsunificator/sudoku-solver v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

sudoku-solver

A grid based approach to solve sudokus

Getting Started

Usage

import { Sudoku } from "@thoughtsunificator/sudoku-solver"
const puzzle = [
  [5,3,0,0,7,0,0,0,0],
  [6,0,0,1,9,5,0,0,0],
  [0,9,8,0,0,0,0,6,0],
  [8,0,0,0,6,0,0,0,3],
  [4,0,0,8,0,3,0,0,1],
  [7,0,0,0,2,0,0,0,6],
  [0,6,0,0,0,0,2,8,0],
  [0,0,0,4,1,9,0,0,5],
  [0,0,0,0,8,0,0,7,9]
]
const sudoku = new Sudoku(puzzle)
const solution = sudoku.solve()
1.0.5

3 years ago