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

https://github.com/voltamon/tic-tac-toe-in-c

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.
https://github.com/voltamon/tic-tac-toe-in-c

c-programming minimax minimax-algorithm tictactoe tictactoe-game

Last synced: 11 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

Tic Tac Toe


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.


Features



  • Human vs Computer gameplay

  • Minimax Algorithm for AI moves

  • Dynamic board display


Getting Started


To set up the project, follow these steps:



  1. Ensure you have GCC compiler installed on your machine. If not, you can install it from gcc.gnu.org.

  2. Clone this repository:

  3. git clone https://github.com/Voltamon/Tic-Tac-Toe-in-C.git

  4. Navigate into the project directory:

  5. cd #directory-name#

  6. Compile and run the project:

  7. gcc -g tictactoe.c -o tictactoe.exe && .\tictactoe.exe