- SDL2
- SDL2_ttk
You can use CMake to compile the project
Make sure that the requirements are met.
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2ttf-dev
This installs the necessary libraries under linux.
If you are using Windows, you can download the libraries here.
After meeting the requirements, we can move forward to compilation of the program.
Clone this github repo, and make a folder named 'build' inside the root folder.
git clone https://github.com/GnikDroy/0x2048
mkdir build
Then we can us build the project inside this folder.
cd build
cmake ..
make
This should create a new folder named bin
inside the build folder.
The compiled program should be inside.
I have not tested this under windows. If there are any platform issues, please start an issue.
After compiling we can execute our game!
cd bin
./2048
Notice that there is a font file inside the directory. It is used by the game to render the text.
The game won't run without this.
The project used Doxygen for managing it's documentation.
If you wish to read the documentation install doxygen.
sudo apt-get install doxygen-gui
You might also need to install graphviz
for visualizing the relations.
sudo apt-get install graphviz
Then you can create the docs by running doxygen
inside the root folder.
All the documentation will be created under the docs
folder.
Since this was a simple enough project, no tests were written. I do not intend to write them as well.