Skip to content

AI-powered Tic-Tac-Toe game agent using Python. We'll use the Minimax algorithm for the AI to make intelligent decisions and Pygame for GUI

License

Notifications You must be signed in to change notification settings

tyagraj777/Tic-Tac-Toe-with-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-with-AI

AI-powered Tic-Tac-Toe game agent using Python. We'll use the Minimax algorithm for the AI to make intelligent decisions and Pygame for GUI

**Game UI

DRAW

image

Key Features

Minimax Algorithm: Enables the AI to make optimal moves by recursively evaluating possible game states.

Interactive Gameplay: Built with Pygame to allow players to click on the board to make their moves.

Game Rules: Handles winning conditions, draw situations, and player turns.

Dependencies: requirements.txt

  pygame==2.1.2
  1. How to Run: Install dependencies:
    pip install -r requirements.txt
    
  2. Run the game
    python tic_tac_toe.py
    
    
    

Future Enhancements

Add more games (e.g., Connect Four, Checkers).

Incorporate Reinforcement Learning to train the agent for more complex games.

Add a scoring system and multiplayer mode.

About

AI-powered Tic-Tac-Toe game agent using Python. We'll use the Minimax algorithm for the AI to make intelligent decisions and Pygame for GUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages