Skip to content

Latest commit

 

History

History
47 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

47 lines (21 loc) · 1.04 KB

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.