Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

This is a text-based Tic Tac Toe game where the bot makes decisions using the Minimax algorithm. The bot is designed to punish the player by always making optimal moves, ensuring it wins as quickly as possible. The game also features Alpha-Beta prunning, which eliminates unnecessary branches in the decision tree.

Usage

The game starts by asking the player who will play first.
0 - Bot
1 - Human
When the player wants to make a move, they must enter the coordinates of the cell in this format: "X,Y".

The Board coordinates

0,0 | 0,1 | 0,2
1,0 | 1,1 | 1,2
2,0 | 2,1 | 2,2

About

A text-based Tic-Tac-Toe game written in C++, featuring an unbeatable AI opponent powered by the Minimax algorithm with Alpha-Beta pruning.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages