Loading repository data…
Loading repository data…
NarendraYSF / repository
JavaFX2048 is a desktop implementation of the classic 2048 puzzle game, built using JavaFX for a modern and responsive user interface. This project showcases the integration of Java's powerful graphics library to create an engaging and visually appealing version of the popular sliding tile game.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
JavaFX 2048 is a classic puzzle game implemented in Java using the JavaFX framework. The objective is to combine tiles with the same number to reach the 2048 tile.

This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for details.
To clone this repository, use the following command in your terminal:
git clone https://github.com/NarendraYSF/javaFX2048.git
To run the program, you will need to have Gradle installed. You can use gradlew, which is included in the repository. Follow these steps:
Navigate to the project directory:
cd JavaFX2048
Use the following command to run the application:
./gradlew run
This command will compile and execute the JavaFX application.
Ensure you have JDK 11 or higher installed on your machine.
For building a distribution package, you can run:
./gradlew dist
To create a native installer, use:
./gradlew jpackage
You can build container image from source code using the Dockerfile and run the containerized game.
You have to share the X11 socket with the container. For that you need to install VcXsrv Windows X Server for windows or Xquartz if you're using macOS. Make sure to allow connections from network during setup.
On macOS, you'll need to run xhost +127.0.0.1 every time you re-open Xquartz.
The final step is to run the container: docker run -it --rm -e DISPLAY=host.docker.internal:0.0 image_name
Submit an issue and share your thoughts.