An unbeatable AI-based Tic-Tac-Toe game built using Python and Flask. This project implements the Minimax algorithm to ensure the computer opponent plays optimally, and presents an interactive, user-friendly interface in the browser.
- 🔁 Turn-based gameplay: You vs AI
- 🧠 Unbeatable AI using Minimax decision tree
- 🌐 Web-based interface using Flask
- Python – Game logic and AI
- Flask – Web server and routing
- HTML + CSS – Frontend rendering
- Minimax Algorithm – For perfect AI decision-making
git clone https://github.com/Rahil-07/Minimax-Powered-Tic-Tac-Toe-Game.git
cd Minimax-Powered-Tic-Tac-Toe-Gamepip install flaskpython app.pyThen open your browser at: http://127.0.0.1:5000/
- You always play as X.
- The AI is O and moves automatically.
- You can’t beat it... but feel free to try 😉
This project is licensed under the MIT License.