You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TIC TAC WITH AI is a Python-based Tic Tac Toe game using the Pygame library. This project includes a basic implementation of the game with an AI opponent.The AI uses the minimax algorithm to make optimal moves, providing a challenging opponent for players.
6
+
7
+
## Features
8
+
9
+
- Single-player mode against an AI
10
+
- Minimax algorithm for AI decision-making
11
+
- Interactive graphical user interface using Pygame
12
+
- Restart functionality to play multiple games in one session
13
+
- Visual indicators for game outcome: win, lose, or draw
14
+
15
+
16
+
17
+
### Game Controls
18
+
19
+
-**Mouse Click:** Place your mark (X) on the board.
20
+
-**R Key:** Restart the game.
21
+
22
+
### Game Rules
23
+
24
+
- The game is played on a 3x3 grid.
25
+
- You are X, and the AI is O.
26
+
- Players take turns placing their marks in empty squares.
27
+
- The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins.
28
+
- If all nine squares are filled and neither player has three in a row, the game ends in a draw.
0 commit comments