This is a simple implementation of the Tic Tac Toe game in C++, featuring player vs. player and player vs. AI modes. The AI uses the Minimax algorithm to make optimal moves.
- Player vs. Player: Play against a friend locally.
- Player vs. AI: Challenge the computer AI using the Minimax algorithm.
- Simple GUI: The game features a simple console-based graphical user interface.
- Customizable Board: The board size is adjustable, allowing for different game variations.
- C++ compiler (supporting C++11 or later)
-
Clone the repository:
git clone https://github.com/your-username/tic-tac-toe.git
-
Navigate to the project directory:
cd tic-tac-toe
-
Compile the source code:
g++ -o tic-tac-toe main.cpp
- run Tic-Tac-Toe.cpp
- choose the mode of game
- enjoy =)