JavaFX2048
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.
Install / Use
/learn @NarendraYSF/JavaFX2048README
JavaFX 2048 Game
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.

License
This project is licensed under the GNU GENERAL PUBLIC LICENSE. See the LICENSE file for details.
How to Clone the Repository
To clone this repository, use the following command in your terminal:
git clone https://github.com/NarendraYSF/javaFX2048.git
How to Run the Program
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 runThis command will compile and execute the JavaFX application.
Additional Information
-
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
Running using Docker
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
Feedback / Contributing / Comments
Submit an issue and share your thoughts.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
