Skip to content

GiuliaTrz/GameOfFifteen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Game Of Fifteen

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.

Game Rules

  1. 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.
  2. Allowed Moves: You can move a tile adjacent to the empty square (up, down, left, or right) into the empty position.
  3. Winning: Rearrange the tiles in ascending order, with the empty square in the bottom-right corner.

Screenshots

mainScreen

How to play

  1. Download the latest version from the Releases and unzip it
  2. Run the batch file (GUIApp.bat on Windows) or the bash file (GUIApp on Unix Systems) in the bin/ folder

Compile from sources

1) Clone the repository and navigate to the project directory

git clone https://github.com/GiuliaTrz/GameOfFifteen.git && cd GameOfFifteen/GameOfFifteen

2) Build and run the project

# Run the GUI version
./gradlew :GUIApp:run

# Run the CLI version
./gradlew :app:run

Developers

Technologies

  • Java 21
  • JavaFX
  • Gradle

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors