Tic Tac Toe with AI.
Project description
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.
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
TicTacToeAI-0.0.4.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TicTacToeAI-0.0.4.tar.gz.
File metadata
- Download URL: TicTacToeAI-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aba41640e840b4e46741918671115fb9dae5b3f5be2fc08d578f282d86166e2
|
|
| MD5 |
7b157bc3fbec972a9d0ada3321049f73
|
|
| BLAKE2b-256 |
69ca34deecfbfa2e1e65f3c83d4590b10030698e7487c91a213f69a570e3a5c8
|
File details
Details for the file TicTacToeAI-0.0.4-py3-none-any.whl.
File metadata
- Download URL: TicTacToeAI-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2721978ce6de916ad15ad616ae74814bb70438f8bf195378e20db6e36ee7e1f
|
|
| MD5 |
7f4d28913369acb7969d78613f475bc1
|
|
| BLAKE2b-256 |
294b2b6a445fff5168afd2956959c6b2e58e961e5c38dce0c8c76d9e630f9f0b
|