Single Player Mode: Play against an intelligent AI opponent using minimax algorithm
Multiplayer Mode: Two players can play against each other
Scoreboard: Track and view game history and outcomes
Data Analysis: Visualize win percentages with pie charts using matplotlib
GUI Interface: Clean and intuitive graphical user interface using Tkinter
Launch the Game: Run TicTacToe.py to open the main menu
Choose Game Mode:
Single Player: Play against the computer AI
Multiplayer: Two human players take turns
Make Moves: Click on empty squares to place your mark (X or O)
Win Conditions: Get three marks in a row (horizontal, vertical, or diagonal)
View Results: Check the scoreboard to see game history and analysis
Single Player Mode
Player plays as 'X'
Computer plays as 'O' using an intelligent minimax algorithm
AI provides challenging gameplay
Multiplayer Mode
Two players alternate turns
Player 1 uses 'X', Player 2 uses 'O'
Perfect for local multiplayer gaming
Scoreboard
Automatically tracks all game outcomes
Stores results in scoreboard.csv
Displays complete game history in a scrollable window
Data Analysis
Generates pie charts showing win percentages
Uses pandas for data processing
Matplotlib for visualization
Helps players track their performance over time
AI Algorithm
The single-player mode uses the minimax algorithm to provide intelligent gameplay:
Evaluates all possible moves
Chooses the optimal move to maximize winning chances
Provides challenging but fair gameplay
Enhanced AI difficulty levels
Better UI/UX design
Additional game statistics
Sound effects
Online multiplayer support
Built with