This is a simple command-line implementation of the Tic Tac Toe game in C.
- Player vs Player mode
- Player vs Computer mode (coming soon)
- Error handling for invalid moves
To get started with the Tic Tac Toe game, follow these steps:
- 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:
gcc -lGL -lGLU -lglut -lm main.c -o tictactoe
- Run the game:
./tictactoe
- The game is played on a 3x3 grid.
- Players take turns marking a cell with their respective symbols (X or O).
- The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- If all cells are filled and no player has won, the game ends in a draw.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License.