Solves any Sudoku puzzle.
- Clone repository
- Run
yarn
- Create a file called
sudoku.txt
with the contents listed below - Run
node index.js
The contents of the sudoku.txt
file can be:
- a comment indicated by line starting with a
#
- an empty line
- an actual line of the input consisting of 9 numbers and optional spaces
Example
# My favorite sudoku
8 0 0 6 0 1 0 0 3
0 0 2 8 0 0 1 0 0
0 5 0 0 0 0 0 7 0
3 2 0 4 0 8 0 1 5
0 0 0 0 0 0 0 0 0
6 8 0 2 0 9 0 4 7
0 6 0 0 0 0 0 8 0
0 0 8 0 0 3 4 0 0
4 0 0 5 0 6 0 0 1