This project generates Killer-Sudoku puzzle in C++, and solved by SAT later.
-> git
-> Latest version C++ compiler , (this program has been tested on g++ only)
Type the follwing commands on your terminal (without the '$')
$ git clone https://github.com/Yuling-Hsu/Killer-Sudoku.git
$ cd Killer-Sudoku
$ make
Now restart the terminal and you are good to go
To run => enter $ sudokuGen
from anywhere in the terminal
You can view the svg image generated in any Browser.
After executing $ sudokuGen
, you will get svg files under the folder images/
:
puzzles_sol.svg
is the initial solution created when generating the puzzlepuzzles_solbySAT.svg
is the solution created by SAT solver
In suduku.h
: maxCageSizeMinus1
and gridSize
can be modified to get different hard level of the puzzle.
Initially I set it to 5 and 9 respectively.