Read this document to understand the project layout.
Author: Shreya Sharma - ssharm90@illinois.edu
Instructions for downloading are linked in the title, must add libraries and dependencies to CMake files
- CLion - The IDE used to run the game
- Cinder Framework - Graphics library
- Catch2 - Testing framework for the game
- gflags - Used to input the player's name in order to add it to the database
- sqlite3 - Used to add player name and score to database
- sqlite-modern-cpp - Wrapper library that makes SQL easy to use
Download Cinder (v0.9.2) for your MacOS or Windows.
Extract the downloaded item into a folder called ~/Cinder
Open the ~/Cinder folder in CLion and build libcinder.
Create a directory called my-projects in ~/Cinder. Clone this repository into this new folder.
Open the 2048 project in CLion, set the target to cinder-myapp and click the run button.
The goal is to reach the 2048 tile by combining like tiles. Each turn, a new block with the value 2 appears in a random space. When you combine tiles by shifting the board in any direction, blocks with the same value merge and double in value. Don't let the board fill up. Your score increases by the value of each combined tile during each move.
This game was originally created by a 19 year old named Gabriele Cirulli in 2014 and has been expanded to several different platforms since then due to its extreme popularity.
Key | Action |
---|---|
Up | Slide the board upwards |
Down | Slide the board downwards |
Left | Slide the board to the left |
Right | Slide the board to the right |
Key | Action |
---|---|
m | Toggle between light and dark mode |
q | Forfeit the current game |
Can be found here.