Welcome to Tic-Tac-Toe with AI! This project implements the classic game of Tic-Tac-Toe with two modes:
- 🎮 Play against an AI opponent.
- 👫 Play with a friend.
-
🧠 AI Mode:
- Challenge a computer opponent with a strategy to minimize losses.
-
👥 Two-Player Mode:
- Play locally with a friend.
-
🎨 Interactive UI:
- A visually appealing interface for easy gameplay.
-
🔁 Replay Option:
- Restart the game after every match.
- 💻 Python
- 🤖 AI Algorithm: Minimax algorithm
-
Clone the Repository:
git clone https://github.com/omarmohamedreda/Tic-Tac-toe-using-AI.git
-
Navigate to the Project Directory:
cd Tic-Tac-toe-using-AI
-
Open the Game:
- Open the
index.html
file in your preferred web browser.
- Open the
-
🎉 Start playing Tic-Tac-Toe!
- Minimax Algorithm:
- The AI evaluates all possible moves to make the best decision, ensuring an unbeatable opponent.
Contributions are welcome! Here’s how you can contribute:
- 🍴 Fork the repository.
- 🌱 Create a new branch.
- ✨ Make your changes and commit them.
- 🔄 Submit a pull request.
Created by Omar Mohamed. Feel free to connect with me for collaborations, feedback, or opportunities.