A Python-based Tic Tac Toe game featuring an AI opponent with the Minimax algorithm.
This project is a Tic Tac Toe Game where users can play against an AI opponent. The AI utilizes the Minimax algorithm to make optimal moves, ensuring a challenging gameplay experience.
โ Key Features:
- Play Tic Tac Toe against an AI opponent ๐ค
- Uses Minimax algorithm for strategic AI moves ๐
- Interactive game board in the terminal ๐ฎ
- ASCII Art Display for a visually appealing experience ๐ผ๏ธ
- Smart AI that adapts its strategy for optimal performance ๐
- ๐ข Python (Core logic & game mechanics)
- ๐ข NumPy (Game state management)
- ๐ข OS & Time modules (Screen clearing & delays for better UX)
- Start the game and view the board layout.
- Enter your move (1-9) corresponding to board positions.
- AI responds with the best possible move.
- Game continues until a win or draw occurs.
- Results displayed with a congratulatory or game-over message.
# Clone the repository
git clone https://github.com/your-username/AI-TicTacToe.git
# Navigate to the project folder
cd AI-TicTacToe
# Run the game
python tic_tac_toe.py๐ Board Layout (User plays 'X', AI plays 'O')
X | O | X
-----------
O | X | O
-----------
X | O | X
๐ AI Makes a Move:
AI is making a move...
โ
Add a GUI version using Tkinter or PyGame ๐ฅ๏ธ
โ
Implement difficulty levels for AI ๐
โ
Multiplayer mode with online gameplay ๐ญ
โ
Add voice command support ๐๏ธ
Want to improve this game? Follow these steps:
- Fork the repository
- Create a new branch (
feature-xyz) - Commit your changes
- Push the branch
- Open a Pull Request
๐ฉ Email: your-email@example.com
๐ LinkedIn