This project is a graphical implementation of the game 8-Puzzle on Python using Tkinter. Player can drag tiles to solve a puzzle, enter their initial state or generate random.
A simple implementation of the classic 8-Puzzle game in Python using Tkinter.
The player can move tiles by clicking on them, shuffle the board randomly, or set a custom initial state.
- 🔀 Random shuffling of tiles
- 🎮 Move tiles by clicking (only valid moves allowed)
- ⌨️ Input a custom starting state through the text field
- 🖥️ Easy-to-use graphical interface with Tkinter
- Install Python 3.
- Clone this repository or download the
8puzzlegame.pyfile. - Run the game:
python 8puzzlegame.py
