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
    
  2. Launch the game by running 2048 in a terminal of your choice

  3. Infinite fun, at your terminal!

Customizing Colour Scheme

  1. Background add 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 add 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.2.tar.gz (5.0 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.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuinty-forpy-eight-1.2.tar.gz
  • Upload date:
  • Size: 5.0 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.2.tar.gz
Algorithm Hash digest
SHA256 369297186623695cc745191ad145de8137fb8212e27406c99adb598ad586a925
MD5 0f8551aa06a64caf1aed5fe5a7bad38d
BLAKE2b-256 b8b26803f85233b4c5165091d685e93ad5a2ba696a8c42d8c6a4bc57374d81b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tuinty_forpy_eight-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c22dff35e6d85cf56f1fe09861fc91efb8219007e72756cdd85529b023e431b
MD5 b8c416ede7da8a20664e3d79b4f1edaa
BLAKE2b-256 9de76c27ff48ab06c694b301b0b96326522e4e7120e176f5364342ac42ceee38

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