Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 11 days ago
JSON representation

A simple command-line implementation of the classic Tic Tac Toe game in C.

Awesome Lists containing this project

README

        

# Tic Tac Toe Game

A simple command-line implementation of the classic Tic Tac Toe game in C.

![Tic-Tac-Toe](./tic-tac-toe-c.gif)

## 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.