Skip to content

jacksonrnewhouse/term2048

This branch is 60 commits behind bfontaine/term2048:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d388d56 · Jul 7, 2014
Mar 14, 2014
Jul 7, 2014
Jul 7, 2014
Mar 15, 2014
Jul 7, 2014
Jul 7, 2014
Mar 13, 2014
Mar 13, 2014
Jun 2, 2014
Jul 7, 2014
Jun 2, 2014
Jun 2, 2014
Jun 2, 2014
Jul 7, 2014

Repository files navigation

term2048

Build status Coverage status Pypi package https://img.shields.io/pypi/dm/term2048.png

term2048 is a terminal-based version of 2048.

https://github.com/bfontaine/term2048/raw/master/img/term2048.png

Install

pip install term2048

To upgrade a previous installation, use:

pip install -U term2048

Play

term2048

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

Use -h to check the list of available options, and --rules for the game rules.

Tests

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 could fail if run on Windows.

Contributions

  • --version flag added by @aminb
  • --rules flag added by @cardern
  • Short -r and -v flags added by @yankuangshi

v0.2.0

  • 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

About

2048 in your terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published