Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3385404
Showing
2 changed files
with
418 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
This is a simple command-line Sudoku solver written in C for mere educational | ||
purposes. It expects a partially solved Sudoku board as input, that will be | ||
read from standard input or the file given as the first program argument, if | ||
given. Then, it will try to solve the board and print it solved on standard | ||
output. | ||
|
||
The input format is simple. The board must be given as cells from top to bottom | ||
and left to right, with empty cells represented by dots and other cells | ||
represented by its value. Example: | ||
|
||
5 3 . . 7 . . . . | ||
6 . . 1 9 5 . . . | ||
. 9 8 . . . . 6 . | ||
8 . . . 6 . . . 3 | ||
4 . . 8 . 3 . . 1 | ||
7 . . . 2 . . . 6 | ||
. 6 . . . . 2 8 . | ||
. . . 4 1 9 . . 5 | ||
. . . . 8 . . 7 9 | ||
|
||
Same example in a more compact format, also valid: | ||
|
||
53..7.... | ||
6..195... | ||
.98....6. | ||
8...6...3 | ||
4..8.3..1 | ||
7...2...6 | ||
.6....28. | ||
...419..5 | ||
....8..79 | ||
|
Oops, something went wrong.