Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dferber90/sudoku-solver

123456789. Sudoku solver. Finds all solutions.
https://github.com/dferber90/sudoku-solver

sudoku sudoku-game sudoku-solver

Last synced: 9 days ago
JSON representation

123456789. Sudoku solver. Finds all solutions.

Awesome Lists containing this project

README

        

# sudoku solver

Solves any Sudoku puzzle.

## Usage

1. Clone repository
1. Run `yarn`
1. Create a file called `sudoku.txt` with the contents listed below
1. Run `node index.js`

## Input file

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
```