Skip to content

SayyakuHajime/Tucil1_13523009

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IQ Puzzler Pro Solver

shinji

Description

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.


Requirements

  1. Java Development Kit (JDK) version 8 or higher
  2. JavaFX SDK (Download from https://openjfx.io/)

Installation

  1. Clone this repository:
  git clone https://github.com/SayyakuHajime/Tucil1_13523009.git

How to Compile

compile the program first

For GUI + CLi Mode (recommended):

  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.java

NOTE: change /path/to/javafx-sdk/lib with the path to the JavaFX SDK library

For CLI Mode Only:

NOTE: please comment out the following code in the Main.java file 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

How to Run

For GUI + CLi Mode (recommended):

  java --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml -cp bin Main

NOTE: change /path/to/javafx-sdk/lib with the path to the JavaFX SDK library

For CLI Mode Only:

  java -cp bin Main

or with

java -cp bin Main dir_to_input.txt

NOTE: change dir_to_input.txt with the path to the input file


Structure

.
├── src/          
│   ├── gui/     
│   │   ├── GUI.java
│   ├── model/   
│   │   ├── Block.java  
│   │   └── Board.java  
│   ├── parser/  
│   │   └── FileParser.java  
│   ├── solver/  
│   │   └── BruteForceSolver.java  
│   └── Main.java 
├── bin/          
├── test/         
├── doc/    
├── .gitignore      
└── README.md     

Author

M Hazim R Prajoda (13523009)

About

Tugas Kecil 1 IF2211 Strategi Algoritma "Penyelesaian IQ Puzzler Pro dengan Algoritma Brute Force"

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages