This is a console-based implementation of the classic 3x3 Tic-Tac-Toe game, developed using C++ and Object-Oriented Programming principles. The game is built with CMake for easy compilation and setup.
- C++ compiler (e.g., g++, clang++)
- CMake (version 3.5 or higher)
- A console environment that supports the
clear
command (e.g., Linux terminal, macOS terminal)
-
Clone the repository:
git clone https://github.com/neeraj-395/tic-tac-toe.git cd tic-tac-toe
-
Create a build directory and navigate into it:
mkdir build cd build
-
Run CMake to configure the project:
cmake ..
-
Build the project:
make
-
Navigate to the build directory if not already there:
cd build
-
Run the executable:
./tic-tac-toe
-
Follow the on-screen instructions to play the game.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to OpenAI for providing assistance with creating this README.