/sudoku-solver

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Sudoku Solver

This is a command line application that solves Sudoku puzzles. It uses recursive backtracking to find a solution.

Build

In order to build the project run the following commands:

$ mkdir build
$ cd build
$ cmake ..
$ make

Usage

Usage: sudoku_solver [OPTION]
Solve a Sudoku.

Options:
-h			show this help information
-s sudoku		solve the provided Sudoku
-f filepath		solve the Sudokus in the provided file (file must contain one Sudoku per line)

Examples:
sudoku_solver -s 003020600900305001001806400008102900700000008006708200002609500800203009005010300
sudoku_solver -f ./sudokus.txt