Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 939 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 939 Bytes

Tic Tac Toe

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.

Features

  • Interactive command line interface.
  • Error handling for invalid moves.
  • Win and tie detection.
  • Modular code structure.

How to Play

  1. Clone this repository to your local machine.
  2. Compile the source code using a C compiler (e.g., GCC).
    gcc tic_tac_toe.c -o tic_tac_toe
  3. Run the executable.
    ./tic_tac_toe
  4. Follow the prompts to input your moves. Player 1 plays as 'X' and Player 2 plays as 'O'.
  5. The game continues until one player wins or there's a tie.

Contributing

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.