Skip to main content

A Tic Tac Toe Library with a near perfect engine

Project description

ZTTT

Installation

pip install ZTTT

Project Structure

ZTicTacToe
├── examples
│   └── __init__.py
│
├── src
│   └── ZTTT
│       ├── ZTBase
│       │   ├── __init__.py
│       │   ├── ZTBaseBoard.py
│       │   └── ZTBaseEngine.py
│       ├── ZTEngines
│       │   ├── __init__.py
│       │   ├── ZTEngineFirst.py
│       │   └── ZTPlayerFirst.py
│       ├── ZTErrors
│       │   ├── __init__.py
│       │   └── ZTErrors.py
│       ├── __init__.py
│       ├── PvC.py
│       └── PvP.py
│
├── tests
│   ├── __init__.py
│   └── test.py
│
├── .gitignore
├── LICENSE.txt
├── README.md
└── setup.py

Usage

Examples will be eventually uploaded

from ZTTT import PvP, PvC

b = PvP()

if b.status:
    b.play(0)  # Player 1 plays in the top Right

if b.status:
    b.play(1)  # Player 2 plays in the top Middle

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

ZTTT-0.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

ZTTT-0.0.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file ZTTT-0.0.3.tar.gz.

File metadata

  • Download URL: ZTTT-0.0.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ZTTT-0.0.3.tar.gz
Algorithm Hash digest
SHA256 21f972dbdfc7493eee5b13ea6831f0b350196c1f95b70746f3d327df1e924c7f
MD5 f60c54c5961dbef17e93b2fe0b4e8f84
BLAKE2b-256 47c477c2cc2f25e8f98da72e8d668fa310a857d290f580b0ad44365c63966d26

See more details on using hashes here.

File details

Details for the file ZTTT-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ZTTT-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ZTTT-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2e0a31ec5b9acef7b5fdb9f826fdd949f04d9500dc42184e0ed8fe00da56b927
MD5 2b46bf2981c3e30ac7e63737b9ac9567
BLAKE2b-256 5802d4b9659111bfc2e2ffafe42be2c5164696211546b0a006686e12816ef476

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