Skip to main content

A TUI to play tictactoe.

Project description

TextTacToe

This is an TUI App for playing TicTacToe built using Textual in Python3.

View Of TextTacToe

NOTE: Due to the fact that textual t is still in the develepment stage, I reccomend you install this only in virtual env. This app will probably change heavily as textual changes.

Dependencies

Textual:

python -m pip install textual 

Install

python -m pip install texttactoe

Run

If installed correctly, you should be able to run 1 of 2 ways, as a python module or a standalone script:

python -m texttactoe

or

texttactoe

The following options are available for customization. Note that the color options currently do not check whether they are a valid colors. We use textual/rich to customize the color and so it mus be a valid choice from these frameworks.

usage: texttactoe [-h] [-v] [-p1 PLAYER1] [-p2 PLAYER2] [-c1 COLOR1] [-c2 COLOR2] [-r]

A tictactoe TUI.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         display version information
  -p1 PLAYER1, --player1 PLAYER1
                        Name of Player1
  -p2 PLAYER2, --player2 PLAYER2
                        Name of Player2
  -c1 COLOR1, --color1 COLOR1
                        Color of Player1
  -c2 COLOR2, --color2 COLOR2
                        Color of Player2
  -r, --random          Randomize player colors

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

texttactoe-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

texttactoe-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file texttactoe-0.1.0.tar.gz.

File metadata

  • Download URL: texttactoe-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for texttactoe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf8470a2621450f50b91c0cd05b5bc2644429b323f1d9926596a9e5932308b32
MD5 17ab6cd37d6693c4a65636fad6971cfc
BLAKE2b-256 a90accdb6512d8a7e8b66a207e957a213eb73e3b17cfe7f8e64e8cd38e378888

See more details on using hashes here.

File details

Details for the file texttactoe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: texttactoe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for texttactoe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 083dc450d4cffdd7d16253621af7c1e156e1c29536763d6d19e6a2205939d79f
MD5 3471cda2774a4437bf8adaf51c3c305d
BLAKE2b-256 e0af65fd1e4a6d8b07b123f38ee4d36fc8d827189dd9cf5183c8905d79f7409c

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