A simple graphical version of the classic 2048 game built in Java 8.0 using Gradle as the build system. Inspiration taken from https://play2048.co/
- Language: Java
- Build Tool: Gradle
- Dependencies:
org.processing:core:3.3.7
2048-Game
|--src
| |--main
| |--java
| |TwentyFortyEight
| |--App.java
| |--Cell.java
|--build.gradle
- Java JDK 8 or higher
- Gradle 5.6.3 or higher (or use the Gradle Wrapper)
Insert commands from root directory
gradle build
gradle run #(4x4 grid by default)
gradle run --args="n" #(nxn grid is generated)
The entry point of the application is:
TwentyFortyEight.App
Use the following keyboard keys to play the game:
- UP – Move Up
- DOWN – Move Down
- LEFT – Move Left
- RIGHT – Move Right
- R – Restart the game after game over