This is a simple command-line implementation of the classic Tic Tac Toe game, written in C. The game allows a human player to play against a computer opponent that uses the minimax algorithm to determine the best moves.
[Discaimer] I am still learning C. There may be scope for improvement in the code.
- Human vs Computer gameplay
- Minimax Algorithm for AI moves
- Dynamic board display
To set up the project, follow these steps:
- Ensure you have GCC compiler installed on your machine. If not, you can install it from gcc.gnu.org.
- Clone this repository:
- Navigate into the project directory:
- Compile and run the project:
cd #directory-name#
gcc -g tictactoe.c -o tictactoe.exe && .\tictactoe.exe