A sudoku solver written in C using backtracking algorithm
-
Clone the repository locally and move into the directory
$ git clone https://github.com/aadilshabier/sudoku.git && cd sudoku
-
There are two different ways to build the project:
I. Meson$ meson build && ninja -C build
The binary executable will be generated in the
build
directory.
II. This one liner$ cc -Wall -Wextra -pedantic --std=c11 -O3 -Iinclude -o sudoku src/main.c src/sudoku.c
The binary exectable will be generated in the parent directory.
-
The
example
script can be used to get some example puzzles to test the program, it contains 50 puzzles$ ./example 12 | ./sudoku