A simple console-based Tic Tac Toe (X and O) game written in C. This game offers three different modes:
In this mode, you and a friend can play against each other on the same computer, taking turns to place your moves on the grid.
In this mode, you play against a bot that doesn't really know how to play the game, so it makes random moves.
In this mode, you play against one of the best algorithms known as miniMax, and the chances of you winning are close to zero.
After launching the game and selecting a mode, you will be prompted to select a position on the grid. Select a number between 1 and 9, where 1 represents the first space and 9 represents the last space.
Compiling the game is straightforward:
1 - Install a C compiler, such as GCC
2 - Clone this repository to your local machine
3 - cd
into the directory
4 - Compile the code by running:
gcc core.c -o tictactoe
5 - This will create an executable named tictactoe.exe
which you can simply double-click to run :)