This project is an implementation of the classic Tic-Tac-Toe (XO) game in Python, featuring a graphical user interface created with Tkinter. Players can choose to compete against another player or face an AI opponent implemented using the minimax algorithm.
- Two Modes of Play: Choose to play against a human opponent or challenge our AI.
- Graphical User Interface: Built using Tkinter for an easy and interactive gaming experience.
- Minimax Algorithm: The AI opponent is powered by the minimax algorithm, making it a challenging adversary.
- Start the game by running
python xo_game.py
in your terminal. - Choose your game mode: Player vs Player or Player vs AI.
- Click on the cells of the game grid to make your move.
- The game will announce the winner or a tie when the game ends.
- Python 3.x
- Tkinter library (usually comes with Python)
Clone this repository to your local machine: https://github.com/hmd7777/Python-XO.git