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
- 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
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 24— clear all cells with value 4+(orShift +) — spawn a new random tileX/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.