Skip to content

gabrielioanpavel/2048

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2048

A clone of the classic game made entirely in C and made to be played in the terminal / cmd. With modularisation in mind the project is made to be easily modifiable.

demo

Support

The project has been developed on linux, so support for any other platform is not guaranteed.

The project needs ncurses library, to work properly.

Instalation

Dependencies: gcc or any C compiler (in this case you need to edit the Makefile)

git clone https://github.com/amir-FM/2048 [instalation directory]
cd ./[instalation directory]
make
./2048

Project Structure

info: graphics are hard-coded into the source files. (logo and leaderboard texts)

  • main.c - connects all modules
  • menu.c - menu items + logo
  • game.c - the game panel
  • fileHandler.c - handles savefile and leaderboard
  • colors.c - colorscheme for the game
  • panels.c - auxilary panels for the game
  • keys.c - keyboard scheme

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.5%
  • Makefile 1.5%