Welcome to the Tic-Tac-Toe Game! This is a C++ implementation of the classic Tic-Tac-Toe game, where you can play against a friend or challenge a computer AI that strives to win using strategic moves.
- Play Modes:
- Player vs. Player: Play against a friend locally.
- Player vs. Computer: Compete against an AI that predicts and counters your moves.
- Smart AI: The AI is designed to make strategic decisions, making the game challenging and fun.
- Clean and Simple Interface: Easy-to-use console-based UI for a straightforward gaming experience.
- Clone the repository.
- Compile the C++ code using a C++ compiler.
- Run the executable and choose your game mode.
- Enjoy the game!
The AI uses a decision-making algorithm to predict and select the best possible moves. The algorithm evaluates the current board state and attempts to either win or block the player's winning move.