2048-Lite

My very first programming project. A CLI (Command Line Interface) version of the famous 2048 game, coded in C.

CMAKEFILE

This project implements a console version of the 2048 game in C. It includes the following features:

  1. Main menu: Start a new game, load a save, or quit.

  1. Grid management:

    • Dynamic allocation of a 4x4 grid initialized to zero.

    • Random addition of squares (2 or 4) with respective probabilities of 90% and 10%.

    • Display and rotate the grid for moves.

  2. Movements : Four possible moves (up, down, left, right), managing mergers of identical squares and game constraints.

  3. Saving and loading: A game can be saved and resumed via a text file.

  4. Memory management: Dynamic release of used resources.