A simple C++ command-line program that solves a given Sudoku puzzle using backtracking and prints the solution to the console.
- Uses backtracking algorithm to find a valid Sudoku solution.
- Accepts input as a 9×9 grid where each cell is an integer from 0 to 9; zeros indicate empty cells.
- Outputs the completed Sudoku grid in a readable format.
- C++ compiler with C++17 support
-
Clone the repo:
git clone https://github.com/LerkkaP/sudoku-solver
-
Navigate to project root
-
Build the project (g++):
g++ -Iinclude src/*.cpp -o sudoku-solver
Tip
You can define the Sudoku puzzles to be solved in the main.cpp file.
From the project root run:
./sudoku-solver