simple CLI-based Tic-Tac-Toe game written in C++. There are two versions:
- Two-Player Version – Players
XandOtake turns competing against each other. - Basic AI Version – Play against a simple computer opponent.
In TicTacToe2Player.cpp, the two players alternate turns.
The game validates inputs, detects winners or draws, and displays the current board after each move.
TicTacToe2PlayerMatchTracking.cpp follows the same concept but plays three rounds to determine the overall winner.
This project is ideal for C++ beginners to practice working with:
- Classes and objects
- Inheritance and polymorphism
- Input and output
- Arrays
- Game logic
- A C++ compiler (e.g.
g++) - Terminal or command line interface
g++ -o TicTacToe2Player TicTacToe2Player.cpp./TicTacToe2Player