Skip to main content

Tic Tac Toe with AI

forthebadge made-with-python
Python 3.6

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.

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)

Source distribution for TicTacToeAI 0.0.4
File Size Uploaded
TicTacToeAI-0.0.4.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TicTacToeAI 0.0.4
File Interpreter ABI Platform
TicTacToeAI-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page