Skip to content
/ 0x2048 Public
forked from GnikDroy/0x2048

A yet another implementation of the game 2048 in C!

License

Notifications You must be signed in to change notification settings

timvuon/0x2048

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0x2048

A yet another implementation of the game 2048 in C!

Requirements

  • SDL2
  • SDL2_ttk

Meeting the Requirements

You can use CMake to compile the project

Make sure that the requirements are met.

Linux

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.

Windows

If you are using Windows, you can download the libraries here.

How to compile

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.

Running

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.

Creating the documentation.

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.

Tests

Since this was a simple enough project, no tests were written. I do not intend to write them as well.

About

A yet another implementation of the game 2048 in C!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.5%
  • CMake 26.5%