A simple Tic-tac-toe game implemented in C++.
Tic-tac-toe, noughts and crosses, or Xs and Os, is a paper-and-pencil game is a game for two players, X and O, who take turns by marking in vacant saces in a 3X3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is declared as the winner.
This game is implemented using simple C++ concepts. It takes input from the players(where the player wants to make his next move), until either one of the player wins the game or the game ends up in draw.
The current status of the board is plotted using the board() function, which plot according to array values in the matrix and the current status of game is checked using checkwin() function which checks if the game ended with win of which player or draw situation or layers need to play further.
The game is cool to play, and it's a small thing that can give you real good experience and excitment.