A -std=c11
sudoku solver to learn autotools
autoreconf --install
mkdir build/
cd build/
../configure
make
To run the test suite, run
make check
Use git clean -f -X -d
to clean up after in-tree builds.
The ssolve
program takes a plaintext Sudoku file as an input. The file is a grid of single-digit
numbers. All non-digit numbers are ignored.
$ cat ./tests/cases/empty.txt
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
------+-------+------
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
------+-------+------
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
0 0 0 | 0 0 0 | 0 0 0
$ ./ssolve empty.txt