This program finds exactly one solution to the IQ Puzzler Pro game using a brute force algorithm, or displays that no solution is found if no possible solution exists for the puzzle.
- Java Development Kit (JDK) version 8 or higher
- JavaFX SDK (Download from https://openjfx.io/)
- Clone this repository:
git clone https://github.com/SayyakuHajime/Tucil1_13523009.gitcompile the program first
javac --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml -d bin src/model/*.java src/parser/*.java src/solver/*.java src/gui/*.java src/Main.javaNOTE: change
/path/to/javafx-sdk/libwith the path to the JavaFX SDK library
NOTE: please comment out the following code in the
Main.javafile before compiling.
import javafx.application.Application;
import gui.GUI;
Application.launch(GUI.class, args);
javac -d bin src/model/*.java src/parser/*.java src/solver/*.java src/Main.java java --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml -cp bin MainNOTE: change
/path/to/javafx-sdk/libwith the path to the JavaFX SDK library
java -cp bin Mainor with
java -cp bin Main dir_to_input.txt
NOTE: change
dir_to_input.txtwith the path to the input file
.
├── src/
│ ├── gui/
│ │ ├── GUI.java
│ ├── model/
│ │ ├── Block.java
│ │ └── Board.java
│ ├── parser/
│ │ └── FileParser.java
│ ├── solver/
│ │ └── BruteForceSolver.java
│ └── Main.java
├── bin/
├── test/
├── doc/
├── .gitignore
└── README.md
M Hazim R Prajoda (13523009)
