This is a simple command-line Tic-Tac-Toe game implemented in C++. The game allows a human player to play against the computer. The computer makes random moves.
- Play against the computer
- Simple command-line interface
- Check for win and tie conditions
To compile and run this project, you need to have a C++ compiler installed on your machine. You can use GCC, Clang, or any other standard C++ compiler.
g++ -o tic_tac_toe tictactoe.cpp
After compilation, you can run the game using:
./tic_tac_toe
- The game board consists of 9 spaces, numbered from 1 to 9.
- The player is assigned the marker 'O' and the computer is assigned 'X'.
- The player will be prompted to enter a spot to place their marker.
- The computer will then make a random move.
- The game checks for win or tie conditions after each move.
If you have suggestions or improvements, feel free to submit a pull request or open an issue.