This is a simple implementation of the classic Tic Tac Toe game using OOP principles in C++.
The game allows two players to take turns marking spaces on a 3x3 grid to try and achieve a winning pattern (three of their symbols in a row, column, or diagonal) before the opponent does. Players take turns until one player wins, the game ends in a draw, or the grid is filled.
- Players can choose their symbols (e.g., 'X' or 'O').
- The game checks for win conditions after each move.
- If a player wins, the game announces the winner.
- If the game ends in a draw, it announces the draw.
- Players are prompted to input the position they want to mark on their turn.
- Positions on the board are validated to ensure they are not already occupied.
- Compile the source code using a C++ compiler.
- Run the executable file.
- Enter the symbol for player 1 and player 2.
- Players take turns entering the position to place their symbol.
- The game ends when one player wins, the game ends in a draw, or the grid is filled.
To play the game, you need to compile the source code using a C++ compiler. You can download and install a C++ compiler from various sources, such as GCC, Clang, or Visual C++.
Contributions are welcome! If you want to contribute to this project, you can fork this repository and submit a pull request with your changes. Please make sure to follow the coding standards and write clear commit messages.
This project is licensed under the MIT License. See the LICENSE file for more information.