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
Release history Release notifications | RSS feed
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.2.tar.gz
(8.2 kB
view details)
Built Distribution
ZTTT-0.0.2-py3-none-any.whl
(2.2 kB
view details)
File details
Details for the file ZTTT-0.0.2.tar.gz
.
File metadata
- Download URL: ZTTT-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b4b8ed5e0d85657c93505bd9f457d144e239ae26d6e4302fa9d83634695198 |
|
MD5 | be5e49a9614bd91b702eebe3c15e1663 |
|
BLAKE2b-256 | 4416c639c2958b67dba9c5fba6b9a3372e6bbaf029da5c334a7f0327b494d451 |
File details
Details for the file ZTTT-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ZTTT-0.0.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aea8794de78c8c3109144493222de3e3fe4e1d7356b1bf6110b247a1abccc17 |
|
MD5 | 402a4aa45dfcfd10be9ec1bdc379a1fb |
|
BLAKE2b-256 | 2b7601ceb7d1c74c154eb975cedaaf8cd9ab6ac9239e8f58b915e1065f6e1b17 |