A Tic-Tac-Toe is a 2 player game, who take turns marking the spaces in a 3x3 grid.The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.
TicTacToe.py is the python implementation of the game. There is only one modes to play: Single Player (Against Computer)
The single player mode uses MiniMax algorithm to make the computer unbeatable. Even if the player plays the most optimal move everytime, the end result would be atmost a draw. The gameplay of Single Player mode is show below.Every time you make a move, the computer plays automatically.