
About
2048 is a single-player sliding-tile puzzle game created by Gabriele Cirulli, released as open-source software on GitHub in March 2014; players slide numbered tiles on a grid to combine them into a tile numbered 2048, with the option to keep playing for higher numbers afterward. 2048.cpp is a terminal (command-line) reimplementation of 2048 written in C++11, buildable with either CMake or Meson and running natively on Linux and macOS, with cross-platform support for Windows via Cygwin or WSL. Over time contributors have added features such as vim-style and arrow-key controls, saving and resuming a game in progress, and score/highscore tracking with human-readable play durations; the project is currently inactive but the game itself is playable.
How it differs from the original
Unlike the original browser and mobile game, this is a terminal application whose board is drawn with box-drawing characters, and it adds a save/resume feature that lets a game be continued from a previously saved state.
Getting started
Build it with a C++11 compiler using either CMake (`ctest -S setup.cmake` then an optional install step) or Meson, then run the resulting `2048` program in a terminal to play; movement can use either vim-style or arrow keys depending on the build.
History
The project was featured on GitHub's official Twitter and Facebook accounts shortly after release.
Additional notes
- Packaging
- The project has its own MacPorts port page, making it installable as a macOS package.