A replica of the extremely famous 2048 game made using Linked Lists and Open Graphics Library. It's entirely coded in C++.
We also implemented an optimal algorithm for the next move which makes sure the user, if he/she chooses to apply it, will attain the maximum score(if game ends in a loss) and maybe even win the game which depends on how early the user sarted to utilize this feature after starting the game.
Contributors: Navneet Das Madhukar
This was made for the partial fulfilment of the requirement of an academic project for the subject Fundamentals of Data Structures.
Here's a preview of our project.
Make sure that your OS has OpenGL installed. Navigate your terminal to the directory where you've downloaded the project. Compile and execute the game using the following commands:
g++ GL2048.cpp -lGL -lGLU -lglut
./a.out
- USE THE W,A,S,D keys to shift the tiles in up, left, down, right direction respectively.
- USE THE U key to undo the move you made(you can perform this multiple times).
- USE THE R key to restart the game.
- USE THE I key to access the Optimal Algorithm for attaining a maximum score(even win too).
- USE THE X key to exit the game.
- USE THE Right Mouse Button to access the menu and perform the above functions using mouse.
- Availability of larger board size(eg 5x5, 6x6 etc).
- A more smoother user experience like in the original 2048 game.
- Nothing else, 3 looked better.
Please feel free to suggest improvements.