The 15 Puzzle is a classic sliding puzzle that consists of a 4x4 grid with 15 numbered tiles and one empty space. The objective is to arrange the tiles in ascending numerical order by making sliding moves that use the empty space.
Launch the 15 Puzzle game application.
Arrange the numbered tiles in order (1–15), using the empty space to slide tiles.
Click or tap a tile adjacent to the empty space to slide it.
You win when all tiles are in order from 1 to 15, left to right, top to bottom, with the empty space in the bottom-right corner.
Fifteen Puzzle game can be run on the Sugar desktop. Please refer to;
Dependencies:-
- Python >= 3.10
- PyGObject >= 3.42
- PyGame >= 2.5
These dependencies need to be manually installed on Debian, Ubuntu and Fedora distributions.
Running outside Sugar
-
Install the dependencies
-
Clone the repo and run -
git clone https://github.com/Bishoywadea/FifteenPuzzle
cd FifteenPuzzle
python main.py
Running inside Sugar
- Open Terminal activity and change to the Fifteen Puzzle activity directory
cd activities\FifteenPuzzle.activity
- To run
sugar-activity3 .