Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/knbr13/tic-tac-toe
- Owner: knbr13
- Created: 2023-05-22T07:08:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-24T15:31:33.000Z (about 1 year ago)
- Last Synced: 2024-12-17T07:34:53.467Z (11 days 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.
![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.