Skip to main content

A tui implementation of the game "2048", made with textual

Project description

Made with Textual 0.41.0

Why?

I made this over the course of a week to test out the features of textual, and felt like sharing it.

Installation

  1. Install the script and associated files:
    pip install tuinty-forpy-eight
  1. Launch the game by running 2048 in a terminal of your choice

  2. Infinite fun, at your terminal!

Customizing Colour Scheme

1. Background

Supply the rgb values of the background colour you want along with the 2048 command
e.g 2048 -bg[--background] 0 0 0
it is optional and defaults to (143, 0, 255)

2. Background Opacity

Supply the opacity as a float between 0 and 1
e.g. 2048 -op[--opacity] 0.2
it is optional and defaults to 0.13

3. Tile colour

Supply the rgb values of the tile colour you want along with the 2048 command
e.g. 2048 -bg[--background] 0 0 0
it is optional and defaults to (237, 115, 255)

The above arguments can be used in combination

How to

  • For instructions on how to play, bring up the help screen by pressing "?" or the F1 key when in the game

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

tuinty-forpy-eight-1.3.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuinty_forpy_eight-1.3.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file tuinty-forpy-eight-1.3.1.tar.gz.

File metadata

  • Download URL: tuinty-forpy-eight-1.3.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for tuinty-forpy-eight-1.3.1.tar.gz
Algorithm Hash digest
SHA256 48e1307888b6faf741e30e226638aeb14e3625cd0ce31930abb7ba4d52ca78d9
MD5 81688240d1ebc851299532506e5a668e
BLAKE2b-256 1f7000da101817356f79786a9f4725a27d54036cefdc03372f367a7c38c034c5

See more details on using hashes here.

File details

Details for the file tuinty_forpy_eight-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tuinty_forpy_eight-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1098f259a4d2b2613318519d531853f4a9e6eb83cca9a340cb9a2be9203920
MD5 1ba8694618ab3ea74c7292beb4d3cbab
BLAKE2b-256 d0777fb0bed22588cdc16d06046506c49466a88e70f922fda922bc48dfb14a62

See more details on using hashes here.

Supported by

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