An interactive Tic Tac Toe game built using HTML, CSS, and JavaScript, featuring both Player vs Player and Player vs AI modes.
This project demonstrates core web development concepts such as DOM manipulation, event handling, game state management, and a rule-based game AI implemented using the Minimax algorithm.
https://jaivpatel07.github.io/Tic-Tac-Toe/
- Clone or download this repository
- Ensure all files are in the same directory
- Open
index.htmlin any modern web browser - Select a game mode and start playing
- Two human players
- Player X always starts first
- AI opponent implemented using the Minimax algorithm
- Classical rule-based game AI (not machine learning)
- AI always plays optimally, so the best possible result is a draw
- Player vs Player and Player vs AI modes
- Rule-based AI using Minimax algorithm
- Game state tracking and win detection
- Restart and mode switching functionality
- Clean and responsive user interface
- Understanding of JavaScript DOM manipulation
- Event handling and UI updates
- Game logic and state management
- Introduction to classical AI concepts and decision-tree search
Jaiv Patel