The Game Of Fifteen is a classic numerical puzzle consisting of a 4x4 grid containing 15 numbered tiles from 1 to 15 and one empty square. The goal of the game is to arrange the tiles in ascending order by moving adjacent tiles into the empty space. The game is also known as the 15 Puzzle.
- Initial Setup: The tiles are randomly arranged in the 4x4 grid, with one empty square.
- By varying the number of moves made by the shuffle, it is possible to increase or decrease the complexity of the puzzle.
- Allowed Moves: You can move a tile adjacent to the empty square (up, down, left, or right) into the empty position.
- Winning: Rearrange the tiles in ascending order, with the empty square in the bottom-right corner.
- Download the latest version from the Releases and unzip it
- Run the batch file (
GUIApp.baton Windows) or the bash file (GUIAppon Unix Systems) in thebin/folder
git clone https://github.com/GiuliaTrz/GameOfFifteen.git && cd GameOfFifteen/GameOfFifteen# Run the GUI version
./gradlew :GUIApp:run
# Run the CLI version
./gradlew :app:run- Java 21
- JavaFX
- Gradle
