/game-2048

A 2048 game written in Java to an university project from my course

Primary LanguageJavaMIT LicenseMIT

2048 game logo gif

The project

A 2048 game written in Java to a university project from my course. Developed with inheritance and polymorphism concepts. The game itself is in portuguese language.

The game

2048 is a thinking game that the objective is to merge blocks with the same value until it forms a 2048 block.

Game install instructions

  1. Clone the archive or download the last version on tab Releases.
  2. Extract the zip file.
  3. Open the 2048-v1.0.jar file or just clone, compile with a IDE and run the game.
  4. Open the "mobile_controller" file.
  5. Connect your cellphone to the machine.
  6. With both programs open and running, just play! :)

OBS: Check if the machine has installed JAVA SE 8+.
OBS²: If the .jar does not open in Linux, open the terminal on the root folder, and execute the command "java -jar 2048-v1.0.jar".

OBS³: Download Android Studio: ANDROID STUDIO

How to play through mobile

  1. With the "mobile_controller" folder installed downloaded, open Android Studio and open the downloaded project.
  2. With the project open, follow these directories: "mobile_controller / app / src / main / java / com / engcomp2019 / controller" and "mobile_controller / app / src / main / res / xml / network_security_config.xml", change the fields initialized with a default IP to your machine's IP.
  3. Save changes made, and follow game installation instructions.

Instructions in game

  1. With the game running, select the desires options on menu and click on "START" to initiate the game.
  2. To perform the movements, use the keyboard arrows, "w","a","s","d", the arrows on display or click and drag the mouse cursor.
  3. The custom icon represents an Easter Egg.
  4. To return a movements realized click on left oriented arrow.
  5. Click on "ARCHIVE" on upper left corner to access the available options.

Developers

Erick M. L. Pacheco, R.A. 18711630
Leonardo Sanavio, R.A. 18054395

Thanks!