Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 817 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 817 Bytes

sudoku

A sudoku solver written in C using backtracking algorithm

Instructions:

  1. Clone the repository locally and move into the directory

    $ git clone https://github.com/aadilshabier/sudoku.git && cd sudoku
  2. 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.

  3. The example script can be used to get some example puzzles to test the program, it contains 50 puzzles

    $ ./example 12 | ./sudoku