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.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

ZTTT-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ZTTT-0.0.1.tar.gz
  • Upload date:
  • Size: 8.2 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.1.tar.gz
Algorithm Hash digest
SHA256 4b1c8df924c22bb393334309037302d09fa08696d002d1267a0f371cee2b3f2b
MD5 66628373a1947cc8ee8a40ec6ee207b5
BLAKE2b-256 a821f5d0ffc4576fa2cbc87a5a12fbf2fe258eca309f0c748cd280498bf00efc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ZTTT-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1442d87bd57f9be9106f26b134cb9cc98f2f1bb40b8fe66ce985c1d59b41a938
MD5 8c6af36b144b44188c912314355d254f
BLAKE2b-256 ed06ce4434e8f1c13b0c4c35fb0b9bfe5031c35b9fb7aa3c551685f59dd072ec

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