Welcome to the 15 Puzzle Solver repository! This project implements the A* algorithm to solve the classic 15 Puzzle game, also known as the "Game of Fifteen". The goal of the game is to arrange the tiles in numerical order, starting from the top-left corner and ending with the empty space in the center of the grid.
- Run the 15_puzzle_solver.py script to launch the graphical interface.
- Click on the tiles adjacent to the empty space to move them.
- Click the "A*" button to automatically solve the puzzle using the A* algorithm.
- Python 3.x
- Tkinter (typically included in Python installations)
- Clone this repository to your local machine.
- Ensure you have Python installed.
- Navigate to the project directory.
- Run the following command to install any required dependencies:
pip install numpy
Here is an example of how to solve the 15 Puzzle using the A* algorithm:
python A-Star.py
- Add shuffle button.
- Add 4*4 grid solver