Skip to content

isputra/jeu2048

Repository files navigation

Game 2048

This is Game 2048 which I wrote in C. In this repository there are 2 versions according to the interface used, which are standard input/output and ncurses.

In the development, I separate the functions and procedures into several files:

  • Functions : Manages the logic of the game.
  • Interface : Manages the inputs and renders the game. There are 2 version of this file : interface_2048.cand interface_2048_curse.c.
  • Main file (jeu_2048.cand jeu_2048_curse.c) As you can see both versions use the same function file but different interface file and main file.

Dependencies for Running Locally

Basic Build Instructions

2048 basic

  1. Clone this repo.
  2. Compile: make jeu_2048
  3. Run it: ./jeu_2048

2048 with library ncurses

  1. Clone this repo.
  2. Compile: make jeu_2048_curse
  3. Run it: ./jeu_2048_curse

About

Game 2048 in C language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published