Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dferber90/sudoku-solver
- Owner: dferber90
- Created: 2017-05-30T21:39:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T21:39:56.000Z (over 7 years ago)
- Last Synced: 2024-10-11T13:22:52.899Z (2 months ago)
- Topics: sudoku, sudoku-game, sudoku-solver
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```