Tic Tac Toe Game

This is a simple command-line implementation of the Tic Tac Toe game in C.

Features

  • Player vs Player mode
  • Player vs Computer mode (coming soon)
  • Error handling for invalid moves

Getting Started

To get started with the Tic Tac Toe game, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/tic-tac-toe.git
  2. Navigate to the project directory: cd tic-tac-toe
  3. Compile the source code: gcc -lGL -lGLU -lglut -lm main.c -o tictactoe
  4. Run the game: ./tictactoe

How to Play

  1. The game is played on a 3x3 grid.
  2. Players take turns marking a cell with their respective symbols (X or O).
  3. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all cells are filled and no player has won, the game ends in a draw.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.