A video game emulating a well-known pen-and-paper game called Tic-tac-toe. This is implemented in C with SDL2 library.
Tic-tac-toe is a two-player game. The players choose one symbols from X's and O's for themselves. They take turns putting their symbols on one of the nine squares. Whoever gets to put his or her symbol first in three continuous squares, either horizontally or vertically or diagonally is declared the winner.
-
Install the SDL2 library
sudo apt install libsdl2-dev libsdl2-{ttf,image}-dev
-
Build the program
make
-
Run the program
./play
- Create the board
- Create mouse click support
- Create single player mode
- Create double player mode
- Add sound effects