/sudoku-solver-js

Simple Sudoku solver in Javascript

Primary LanguageJavaScriptMIT LicenseMIT

sudoku-solver-js

Simple Sudoku solver in Javascript

Overview:

Coded for "Introduction to Programming" module, Year 1, Term 2, in Computer Science, University of Goldsmiths.

Simple Sudoku solver based on a Backtracking algorithm.

Sudoku table is hard coded in a 2D array, with missing numbers denoted as an empty entry in the corresponding array.

Solution gets printed to the console.

Usage:

Open index.html, bring up the console and refresh the page to view the algorithm's solution.

Change following variable to change Sudoku table.

var table = [ [ ], ... , [ ] ];

Final print will output the initial and finalised table.