Skip to content

Rahil-07/Minimax-Powered-Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimax-Powered Tic-Tac-Toe Game 🎯

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.


🚀 Features

  • 🔁 Turn-based gameplay: You vs AI
  • 🧠 Unbeatable AI using Minimax decision tree
  • 🌐 Web-based interface using Flask

🛠️ Tech Stack

  • Python – Game logic and AI
  • Flask – Web server and routing
  • HTML + CSS – Frontend rendering
  • Minimax Algorithm – For perfect AI decision-making

▶️ Getting Started

1. Clone the Repository

git clone https://github.com/Rahil-07/Minimax-Powered-Tic-Tac-Toe-Game.git
cd Minimax-Powered-Tic-Tac-Toe-Game

2. Install Requirements

pip install flask

3. Run the App

python app.py

Then open your browser at: http://127.0.0.1:5000/

🤖 Try It Out

  • You always play as X.
  • The AI is O and moves automatically.
  • You can’t beat it... but feel free to try 😉

License

This project is licensed under the MIT License.

About

An unbeatable AI-based Tic-Tac-Toe game built using Python and Flask.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors