This repository is made to fulfill Tugas Kecil 3 Strategi Algoritma 2022. 15 Puzzle Solver made using python and using the principles of branch and bounds algorithm.
This programs will output least amount move possilbe to solve the puzzle using branch and bounds algorithm. (BEWARE that some puzzle will take time to compute so please wait :))
- Install requirement from the
technologies section
- Clone the repository using
git clone https://github.com/IloveNooodles/15-puzzle-solver.git
- Open the folder and move to src using
cd src
- Make sure you are in the src directory otherwise it won't work
- Run the file using
python main.py
- Input is unique number from 1 to 15
- Use 0 for empty space
- template for text file
1 2 3 4
5 6 7 8
9 0 10 11
12 13 14 15
- You can choose either input from txt file, input line by line or generate random puzzle
- Make sure your input is correct
- Ta-da! program will output move and steps by steps
- Make GUI for program to better visualization
- Better approach in the algorithm for faster runtime
├── README.md
├── doc
│ └── Tucil3_13520029.pdf
├── src
│ ├── library.py
│ ├── main.py
│ └── solver.py
└── test
├── correct1.txt
├── correct2.txt
├── correct3.txt
├── correct4.txt
├── correct5.txt
├── false1.txt
└── false2.txt