This repository contains the code to the 2048 game built completely in Java.
The game is tried to be built using object oriented principles, with the main entities or objects being the GameContainer (Main Game board) and Block (Tiles) as the blocks in them. Other classes are either starter or helper classes. Appropriate methods and instance variables have been given to each of the classes and the naming is self explanatory, however suggestions are welcome.
System Requirements : Java SE 1.7, Apache Maven
Step 1: Clone the project into a directory on your computer (any directory) using :
git clone https://github.com/nkher/2048_Java.git
Step 2: Run the following command
mvn clean package
Step 3:Run the starter class using the following command
mvn exec:java -Dexec.mainClass=nkher.Twenty_Forty_Eight_Java.GameStarter
Enjoy !
For any suggesttions or feedback please reach me at namesh.kher@hotmail.com