Sudoku tools
Generates a puzzle.
generate [<difficulty>]
Parameter | Description |
---|---|
difficulty | Desired number of empty cells (default: as many as possible) |
Finds the average time to generate and solve puzzles
profile [<count>]
Parameter | Description |
---|---|
count | Number of puzzles to profile (default: 1000) |
Rates the difficulty of a puzzle
rate [-vv] <puzzle>
Parameter | Description |
---|---|
puzzle | 81 digits, '.', ' ', '0', or '1'-'9', optionally prefixed with "SD" |
Option | Description |
---|---|
-v, -vv | Verbosity |
The overall difficulty is
The result is the difficulty factor of the most difficult technique plus up to +0.5 for additional steps of that technique, plus up to +0.5 for for lower difficulty techniques.
Solves a puzzle
solve <puzzle>
Parameter | Description |
---|---|
puzzle | 81 digits, '.', ' ', '0', or '1'-'9', optionally prefixed with "SD" |
Suggests next steps until the first square in the puzzle is solved
suggest [-a] [-vvv | -j] <puzzle>
Parameter | Description |
---|---|
puzzle | 81 digits, '.', ' ', '0', or '1'-'9', optionally prefixed with "SD" |
Option | Description |
---|---|
-a | Lists the all of the steps for a complete solution |
-v, -vv, -vvv | Verbosity |
-j | outputs in JSON format |