This repository contains a simple implementation of the classic Tic Tac Toe game using HTML, CSS, and JavaScript, enhanced with the Minimax algorithm for AI-based gameplay.
In this implementation, you can play against an AI opponent that uses the Minimax algorithm to determine its moves. The Minimax algorithm is a decision-making algorithm used in game theory to find the optimal move for a player, ensuring that the player maximizes their chances of winning while minimizing the opponent's chances.
- Clone or download this repository to your local machine.
- Open the tictactoe.html file in your web browser.
- Select X or O.
- Click on any empty square to place your mark.
- The AI opponent will automatically make its move using the Minimax algorithm.
- Continue playing until there's a winner or the game ends in a draw.