Skip to main content

A 2048 clone in python with Terminal UI

Project description

A 2048 clone in python with Terminal UI

https://mediacru.sh/lwz2N8zBc3Ph.gif

Install

Using the pip package manager:

pip install macht

Or:

python ./setup.py install

Play

macht

Or without installing (in the project directory):

python -m macht

Use either the arrow keys, the wasd keys, or the hjkl keys to move the tiles.

Options

Specify the board size:

macht 5x5

Play on multiple grids simultaneously:

macht 3x3 3x3 3x3

Play with a different base number:

macht --base 3

Continue where the last game stopped (takes an optional file to resume from/save to):

macht -r
macht 5x5 --resume '~/.local/share/macht/5x5.json'

To display a help message use the -h/--help option.

Dependencies

  • blessed – Used as a general abstraction on terminal input and output.

  • enum package – Enumerations for python. Included with python3.4, older python versions need to use the enum34 package.

Project details


Download files

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

Source Distribution

macht-0.1.5.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file macht-0.1.5.tar.gz.

File metadata

  • Download URL: macht-0.1.5.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for macht-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0327242fd8e0fc7f241ce5d91d82faa07133013768c33422727dd6216544069d
MD5 f9bffabe49b2ed4dd7182a371bf0d52d
BLAKE2b-256 674945f84a392f96f26ae2aa0a2a303206f8ffb59d30b5417d0f82d9831d7e75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page