Skip to content

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.

License

Notifications You must be signed in to change notification settings

Voltamon/Tic-Tac-Toe-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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. Navigate into the project directory:
  4. cd #directory-name#
  5. Compile and run the project:
  6. gcc -g tictactoe.c -o tictactoe.exe && .\tictactoe.exe

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages