Simple n-Sudoku solver using MiniSAT. This project was made with the purpose of completing Computational Logic Assignment: SAT Solvers, Faculty of Computer Science, University of Indonesia, 2016.
First of all, you need these:
-
Linux is preferred. You'll need Linux-alike environment to run this solver in Windows
-
Most recent package-manager
-
At least Java 6 environment is installed
There are two ways to install MiniSAT
To install MiniSAT using your Linux package manager, execute following command:
apt-get update
apt-get install minisat
Note: the package manager apt-get might be different depends on your Linux distribution.
To install MiniSAT using GCC compiler, first you need to download the archive above or here: minisat-2.2.0.tar.gz, then go to the downloaded directory and open the terminal there to execute these commands:
tar xzf minisat-2.2.0.tarcd minisatexport MROOT=$(pwd)cd coresudo apt-get install libghc-zlib-devmake
Note: the package manager apt-get might be different depends on your Linux distribution.
- Go back to the main directory where you have the
minisatdirectory extracted from the archive. - Put the
SudokuSolver.javathere - Compile the
SudokuSolver.javausing command$ javac SudokuSolver.java - Run the program using command
$ java SudokuSolver - Enjoy
- Syukri Mullia Adil Perkasa
- Dhanang Hadhi Sasmita
- Martin Novela