Skip to content

Cristinaaa12/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

2048

A terminal-based implementation of the classic 2048 game, written in C and rendered with ncurses.
Includes a start/pause menu, per-move hints, colorized tiles, and an idle auto-move after 5 seconds.

If you just want to play: make && make run


Features

  • Original 2048 rules : merge equal tiles, score increases on merge
  • Start/Pause menu: New Game, Resume, Quit (open with Q)
  • HUD: current time/date, score, key legend, and a panel showing valid moves
  • Idle auto-move: if no key is pressed for 5 seconds, the game picks the move that frees the most cells (direction is displayed above the board)
  • Colorized tiles for readability
  • Win/Lose states with a 5s grace period to return to menu

Controls

Movement

  • Arrow Keys or W A S D (both upper/lowercase)

Menu

  • Q — open menu (New / Resume / Quit)

Utilities (bonus/debug)

  • 2 — clear all cells with value 2
  • 4 — clear all cells with value 4
  • + (or Shift +) — spawn a new random tile
  • X / x — swap main and secondary diagonals

Game states

  • Win: reach tile 2048
  • Game Over: no free cells and no valid merges
    After “YOU WON” or “GAME OVER”, you have 5 seconds to press any key to return to the menu; otherwise the window closes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors