Skip to main content

A tic-tac-toe library that supports different sizes and dimensions and how many marks in a row to win

Project description

python-tictactoe

PyPI version Tests Build codecov

A tic-tac-toe library that supports different sizes and dimensions and how many marks in a row to win.

Installing

Download and install the latest release:

pip install python-tictactoe

Features

  • Includes mypy typings.

  • Different board sizes

from tictactoe import Board

board = Board(dimensions=(4, 5))
  • More than 2 dimensions
from tictactoe import Board

board = Board(dimensions=(6, 2, 5, 8))
  • More than 3 in a row to win
from tictactoe import Board

board = Board(dimensions=(10, 10, 10), x_in_a_row=8)

License

python-tictactoe is licensed under the MIT License. Check out LICENSE for the full text.

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

python-tictactoe-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

python_tictactoe-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file python-tictactoe-0.0.4.tar.gz.

File metadata

  • Download URL: python-tictactoe-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for python-tictactoe-0.0.4.tar.gz
Algorithm Hash digest
SHA256 be3e9c403ddedfce4389f9d4538f5b6c9f742d24220dab70b7e0a66d8693b499
MD5 a1d873e2a3b1d1adf7e8958b442c1ed0
BLAKE2b-256 062327459ad64455b28a76429731dd38e1869c329daeee5efa33ec5c9ad17859

See more details on using hashes here.

File details

Details for the file python_tictactoe-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: python_tictactoe-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for python_tictactoe-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4b9e47ad6b99abc971a24d7803dd86393e059d784d2048042e6c7fa9e2da7bb2
MD5 ffcfb5db3dbdc4ef14849ffe9f4ae059
BLAKE2b-256 14bdf17261d531a530c9ccebbf13a045c4e5ae0f3420530f2b87acc26239b2fb

See more details on using hashes here.

Supported by

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