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, 115)

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.tar.gz (5.5 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-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuinty-forpy-eight-1.3.tar.gz
  • Upload date:
  • Size: 5.5 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.tar.gz
Algorithm Hash digest
SHA256 4e9f21f9e27393fd01ef4a603f564c80f0ecafca2521b975dbce0b806455b4b4
MD5 823c618297492baaca7f73981dd44d5a
BLAKE2b-256 d8c3285efd84c688a52adf108807b8c7cb2b79d694c5197002d19b4a154fbefb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tuinty_forpy_eight-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f00e4ffad190ba4365bfb5ef2da5fcc276d4a267c768027f7688e29aabe83a08
MD5 66aad6d335c578b63cd9d62d294ab19b
BLAKE2b-256 d733fec7433c164bab1264bf5bc7451a4b503bacc871c8361de85bb230ae5ede

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