Cloned Games

2048.c

SporadicPlayableLinux

Based on 2048

2048.c screenshot

About

2048 is a single-player sliding tile puzzle game written by Gabriele Cirulli and released in 2014, where the player slides numbered tiles on a grid to combine them into a tile numbered 2048. 2048.c is a console implementation of 2048 written in C for GNU/Linux, also tested on FreeBSD and OpenBSD.

How it differs from the original

Instead of the original's graphical tile art, it renders the board in the terminal using one of several selectable ANSI color schemes (original, black-to-white, white-to-black, or blue-to-red), falling back to plain black-and-white on terminals without enough color support.

Getting started

It can be installed with 'apt install 2048' on Debian-based systems, via an AUR package, or by compiling the single C source file with gcc and running the resulting binary; tiles are moved with the arrow keys, and a color-scheme name (e.g. blackwhite, whiteblack, or bluered) can be passed as an argument to change the terminal color theme.

Media

Additional notes

Testing
The project includes a built-in automated test command, reported to run 13 tests successfully.
Share:

We’d like to use analytics cookies to understand how visitors use this site. See our Privacy Policy for details. Nothing else is tracked, and the site works the same either way.