Skip to content

A simple replica of 2048 using Swing framework.

License

Notifications You must be signed in to change notification settings

vincenzocorso/hexagonal2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexagonal 2048 😎

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.

💡 Features

  • Two grid types: Hexagonal or Classic
  • Different grid sizes
  • You can undo last move

🖼️ Screenshot

🕹️ Keys

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.

💻 How to compile this project

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

📃 License

Distributed under the MIT License. See here for more information.

📚 What I learned

Don't use Swing if you want play animations 😂

About

A simple replica of 2048 using Swing framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages