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.
- Host: GitHub
- URL: https://github.com/voltamon/tic-tac-toe-in-c
- Owner: Voltamon
- License: mit
- Created: 2025-03-15T04:16:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-16T12:55:33.000Z (about 1 year ago)
- Last Synced: 2025-06-13T01:04:50.480Z (about 1 year ago)
- Topics: c-programming, minimax, minimax-algorithm, tictactoe, tictactoe-game
- Language: C
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
- 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:
git clone https://github.com/Voltamon/Tic-Tac-Toe-in-C.git
cd #directory-name#
gcc -g tictactoe.c -o tictactoe.exe && .\tictactoe.exe