Skip to content

A sudoku solver that implements strategies (and can be extended to support new strategies). It can solve easy, medium, and hard sudokus.

Notifications You must be signed in to change notification settings

persianturtle/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Solver

The goal of this sudoku solver is to define various strategies that I've been learning about here.

The strategies that this sudoku solver supports can be found in Strategies.res.

The input to the program (i.e. the unsolved sudoku) is hard coded in Solver.res. Sudukus are represented by a flat array of numbers, where 0 represents the absence of a number.

To customize the strategies being applied when solving, edit Solver.res.

sudoku
->easyStrategies
->mediumStrategies
->hardStrategies
->Utilities.toRows
->Js.log

Installation

npm install

Build

  • Build: npm run res:build
  • Clean: npm run res:clean
  • Build & watch: npm run res:dev

Run

npm run solve

About

A sudoku solver that implements strategies (and can be extended to support new strategies). It can solve easy, medium, and hard sudokus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published