/TicTacToe

Tic Tac Toe game with C++

Primary LanguageC++

TicTacToe

Tic Tac Toe game with C++
It is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner. The player can choose any number showen on the 3x3 grid, any other input is invalid input
-console screenshots:
Game started
Game started
Player 1 Win
Player 1 Win

- Note

This message erorre may apper , Maybe due OS problem.

 sh: 1: CLS: not found
 TERM environment variable not set.

This code is for clear console termainal for Linux system("clear"); And system("CLS") for windows.
You can just ignore this message and go on your game
or delete line 91 : if (system("CLS")) system("clear"); and uncoment line 92 : cout << string(50, '\n');

Have fun!