This project implements the classic game of Tic Tac Toe using the Minimax algorithm. The Minimax algorithm ensures that the AI player always makes the best possible move, making it unbeatable against a human player.
Tic Tac Toe is a two-player game where players take turns marking spaces on a 3x3 grid. The objective is to get three of your marks in a row horizontally, vertically, or diagonally before your opponent does.
- Human vs. AI gameplay
- AI player uses the Minimax algorithm with Alpha-Beta Pruning for optimal decision-making
- Interactive command-line interface
- Displays the game board with numbered positions for easier input
- Supports multiple rounds of gameplay
- Clone the repository to your local machine.
- Run the
Tic-Tac-Toe-AI.pyscript in your Python environment. - Follow the prompts to input your moves when it's your turn.
- The AI player will respond with its move, and the game continues until there's a winner or a tie.
This project requires Python 3.x to run.