Skip to main content

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

Reason this release was yanked:

minor issue that makes it uninstallable

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 -tl[--tile] 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.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for tuinty-forpy-eight-1.3.2.tar.gz
Algorithm Hash digest
SHA256 41b06a2edbc6743e504bf8e4254c5c05f89e1312bf1b876c83ec0d232c5e7c03
MD5 cebdbb2cff652d692a6b89cf26ee0d1c
BLAKE2b-256 f1d75895ade005db7fd950540299347f4d4ec449fc242aff5d0653539d1bc2ad

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