https://github.com/knbr13/tic-tac-toe
A simple command-line implementation of the classic Tic Tac Toe game in C.
https://github.com/knbr13/tic-tac-toe
c cli game tic-tac-toe
Last synced: over 1 year ago
JSON representation
A simple command-line implementation of the classic Tic Tac Toe game in C.
- Host: GitHub
- URL: https://github.com/knbr13/tic-tac-toe
- Owner: knbr13
- Created: 2023-05-22T07:08:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T15:31:33.000Z (over 2 years ago)
- Last Synced: 2025-02-09T15:44:11.818Z (over 1 year ago)
- Topics: c, cli, game, tic-tac-toe
- Language: C
- Homepage:
- Size: 2.73 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe Game
A simple command-line implementation of the classic Tic Tac Toe game in C.

## How to Play
1. Clone the repository:
```bash
git clone https://github.com/abdullah-alaadine/tic-tac-toe-c.git
```
2. Navigate to the project directory:
```bash
cd tic-tac-toe
```
3. Start the game:
```bash
make start
```
Note: If you don't have `make` installed, you'll need to compile the code manually and then run the executable file.
## Rules
- The game is played on a 3x3 grid.
- Players take turns to place their symbol ('X' or 'O') in an empty cell.
- The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.
- The game ends in a draw if the entire board is filled, and no player has won.