Skip to main content

2048 in your terminal

Project description

Build status Coverage status Pypi package

term2048 is a terminal-based version of 2048.


pip install term2048

To upgrade a previous installation, use:

pip install -U term2048

To install via snap:

sudo snap install term2048

Install from source

git clone && cd term2048
[sudo] python install



Then use arrow keys to move. VI keys (h,j,k,l) are also supported.

Use -h to check the list of available options, and --rules for the game rules. Press <space> at any time during the game to pause it. You can resume it later using term2048 --resume.


Clone this repo, then:

[sudo] make deps
make check

Note: while term2048 should work on Windows, tests are meant to run on UNIX-like OSes and term2048.keypress-related tests may fail on Windows.


  • --version flag added by @aminb
  • --rules flag added by @cardern
  • Short -r and -v flags added by @yankuangshi
  • Resume feature added by @pravj
  • Snap installation method added by @LaughingLove


  • Python 2.6 and 3.x support by @shaunduncan
  • Tests instructions fixed by @olafleur
  • Spawn probabilities fixed by @frankh
  • Colors improved by @idosch
  • hjkl keys support by @aminb
  • Windows support by @valtron
  • AZ mode by @JosephRedfern
  • The first file-related tests were added by @taeram

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for term2048, version 0.2.7
Filename, size File type Python version Upload date Hashes
Filename, size term2048-0.2.7-py3-none-any.whl (9.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size term2048-0.2.7.tar.gz (10.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page