Tic Tac Toe with AI
Discription
This is a simple command-line implementation of the Tic Tac Toe game in Python, where you can play against an AI opponent. The AI opponent uses the minimax algorithm to make its moves, providing a challenging gameplay experience.
Usage
- Make sure you have Python installed in your system.
- Run Following command in the Terminal.
pip install TicTacToeAI
Example
# test.py
import TicTacToeAI
## To run
# For easy level of game.
run = TicTacToeAI.play_game()
# For medium level of game.
run = TicTacToeAI.play_game('medium')
# For hard level of game.
run = TicTacToeAI.play_game('hard')
Run the following Script.
python test.py
Note
- I have tried to implement all the functionality, it might have some bugs also. Ignore that or please try to solve that bug.
Metadata
Release files for TicTacToeAI 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TicTacToeAI-0.0.4.tar.gz | 3.8 kB | Without provenance | Details for TicTacToeAI-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| TicTacToeAI-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for TicTacToeAI-0.0.4-py3-none-any.whl |
Total release size: 7.8 kB
Release files / TicTacToeAI-0.0.4.tar.gz
| Download URL | TicTacToeAI-0.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3aba41640e840b4e46741918671115fb9dae5b3f5be2fc08d578f282d86166e2
|
|
BLAKE2b-256 checksum How to use checksums |
69ca34deecfbfa2e1e65f3c83d4590b10030698e7487c91a213f69a570e3a5c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / TicTacToeAI-0.0.4-py3-none-any.whl
| Download URL | TicTacToeAI-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2721978ce6de916ad15ad616ae74814bb70438f8bf195378e20db6e36ee7e1f
|
|
BLAKE2b-256 checksum How to use checksums |
294b2b6a445fff5168afd2956959c6b2e58e961e5c38dce0c8c76d9e630f9f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for TicTacToeAI 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.