The game Tic Tac Toe is also known as Noughts and Crosses or Xs and Os ,the player needs to take turns marking the spaces in a 3x3 grid with their own marks,if 3 consecutive marks (Horizontal, Vertical,Diagonal) are formed then the player who owns these moves get won.
Assume ,
-
Player 1 - X
-
Player 2 - O
So,a player who gets 3 consecutive marks first,they will win the game .