sudoku-cli


About


Commands

sudoku-cli has 5 sub-commands each with their own configurable options: * sudoku-cli find-one: Finds a solution to the sudoku puzzle. * -i=<value> | --input=<value> the puzzle input. [required] * -t=<value> | --threads=<value> the number of threads to use. [default: CPU count] * -o=<value> | --output=<value> the file in which to write solutions. [default: terminal] * -c | --compact write output in a compact form. * sudoku-cli find-all: Finds all solutions to an ambiguous sudoku puzzle. * -i=<value> | --input=<value> the puzzle input. [required] * -t=<value> | --threads=<value> the number of threads to use. [default: CPU count] * -o=<value> | --output=<value> the file in which to write solutions. [default: terminal] * -c | --compact write output in a compact form. * sudoku-cli watch-one: Watch the solver find a solution in the terminal. * -i=<value> | --input=<value> the puzzle input. [required] * -m=<value> | --ms-per-frame=<value>: the milliseconds per frame [default: 50] * sudoku-cli watch-all: Watch the solver find all solutions in the terminal. * -i=<value> | --input=<value> the puzzle input. [required] * -m=<value> | --ms-per-frame=<value>: the milliseconds per frame [default: 50] * sudoku-cli count-all: Finds all solutions to an ambiguous sudoku puzzle. * -i=<value> | --input=<value> the puzzle input. [required] * -t=<value> | --threads=<value> the number of threads to use. [default: CPU count]


## Examples


### Find One

sudoku-cli find-one --input=".75.....4.1...5.....8.7.........7.......6...1...8.2...3...9.7...5.3.4.........31."


### Find All

sudoku-cli find-all --input=path/to/puzzle --threads=8 --output=solutions.txt --compact


### Watch One

sudoku-cli watch-one --input=path/to/puzzle


### Watch All

sudoku-cli watch-all --input=path/to/puzzle --ms-per-frame=15


### Count All

sudoku-cli count-all --input=path/to/puzzle --threads=8