|
|
--- |
|
|
title: "Tic-Tac-Toe with Minimax AI" |
|
|
emoji: "๐ฎ" |
|
|
colorFrom: "blue" |
|
|
colorTo: "purple" |
|
|
sdk: "gradio" |
|
|
app_file: "app.py" |
|
|
pinned: false |
|
|
license: "mit" |
|
|
tags: |
|
|
- game |
|
|
- ai |
|
|
- minimax |
|
|
- gradio |
|
|
- python |
|
|
--- |
|
|
|
|
|
# ๐ฎ Tic-Tac-Toe with Minimax AI |
|
|
|
|
|
This project is a simple Tic-Tac-Toe game with an AI opponent using the Minimax algorithm, deployed using Hugging Face Spaces and Gradio. |
|
|
|
|
|
## ๐ How to Play |
|
|
|
|
|
- You play as **X** and the AI plays as **O**. |
|
|
- Enter the row and column to place your move. |
|
|
- The AI responds instantly, making its best move using the Minimax algorithm. |
|
|
|
|
|
## ๐๏ธ Tech Stack |
|
|
|
|
|
- **Python**: Game logic and AI. |
|
|
- **Gradio**: User Interface. |
|
|
- **Hugging Face Spaces**: Deployment. |
|
|
|
|
|
## ๐ฅ Installation (Optional) |
|
|
|
|
|
If you want to run it locally: |
|
|
|
|
|
```bash |
|
|
git clone https://huggingface.co/spaces/YOUR_USERNAME/tic-tac-toe |
|
|
cd tic-tac-toe |
|
|
pip install -r requirements.txt |
|
|
python app.py |
|
|
|