Notgnoshi / ssolve

A -std=c11 sudoku solver to learn autotools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssolve

A -std=c11 sudoku solver to learn autotools

How to build

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.

How to run

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

About

A -std=c11 sudoku solver to learn autotools

License:MIT License


Languages

Language:C 86.4%Language:Shell 7.8%Language:Makefile 3.8%Language:M4 2.0%