This is a simple implementation of the classic Tic Tac Toe game in the C programming language. It allows two players to play against each other on the command line.
- Interactive command line interface.
- Error handling for invalid moves.
- Win and tie detection.
- Modular code structure.
- Clone this repository to your local machine.
- Compile the source code using a C compiler (e.g., GCC).
gcc tic_tac_toe.c -o tic_tac_toe
- Run the executable.
./tic_tac_toe
- Follow the prompts to input your moves. Player 1 plays as 'X' and Player 2 plays as 'O'.
- The game continues until one player wins or there's a tie.
Contributions are welcome! If you want to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you want to change.