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

https://github.com/msio414/ttt-game

A simple Tic-Tac-Toe game in C
https://github.com/msio414/ttt-game

c cprogramming game minimax minimax-algorithm tic-tac-toe tic-tac-toe-game tictactoe tictactoe-game

Last synced: 4 months ago
JSON representation

A simple Tic-Tac-Toe game in C

Awesome Lists containing this project

README

          

# Basic C Tic Tac Toe Game

### This is a simple implementation of the Tic Tac Toe game in C.

- The game has both single player and multiplayer feature.
- The game board is initially filled with numbers.
- Players will be prompted to enter their moves by choosing a number from 1 to 9, corresponding to the grid cells.
- Player 1 marks with 'X', and Player 2 marks with 'O'.
- The game will display the updated game board after each move or ends when a player wins or when the grid is filled, resulting in a draw.

## How to Play
- Compile and run by executing the following command on your linux terminal :
- [ ] ``make``
- [ ] ``.\build\tictactoe.exe`` on windows
- [ ] ``./build/tictactoe`` on Linux