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.4.tar.gz
(7.8 kB
view details)
Built Distribution
ZTTT-0.0.4-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file ZTTT-0.0.4.tar.gz
.
File metadata
- Download URL: ZTTT-0.0.4.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c31aa1fe4fc3b8471e624c2977974ab8f0524c0e802577f63926e9a6bf63ac4 |
|
MD5 | 44595f28e50d9939c4408d11c421e102 |
|
BLAKE2b-256 | 15e70fa391ef853a7b3802df144b84e08c732ddf0997ed3c39dd95957171675b |
File details
Details for the file ZTTT-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: ZTTT-0.0.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f820a7decd8bf5192bc5915f381af0a39c9fa31a35a2e7515743104982419a79 |
|
MD5 | f0b81b9860202b34ec130aa26da6b0d9 |
|
BLAKE2b-256 | c8bb2a8c88e6f6a1301c0a0bb59d86336e8039cfb6a685e27bf9acdd3cf61dc7 |