This is a simple replica of the famous 2048.
This is also my first attempt to use MVC design pattern.
I made this mainly to practise with Swing framework.
- Two grid types: Hexagonal or Classic
- Different grid sizes
- You can undo last move
Press Q to move the tiles to the top left.
Press W to move the tiles upward.
Press E to move the tiles to the top right.
Press A to move the tiles to the left.
Press D to move the tiles to the right.
Press Z to move the tiles to the bottom left.
Press X to move the tiles down.
Press C to move the tiles to the bottom right.
From the root folder:
javac -d ./ src/util/*.java
javac -d ./ src/model/*.java
javac -d ./ src/view/*.java
javac -d ./ src/controller/*.java
javac Main.java
At the end, run Main.java
Distributed under the MIT License. See here for more information.
Don't use Swing if you want play animations 😂