Coders Packet

Tic-Tac-Toe Game using C++ for two players

By Jay Parmar

Tic-Tac-Toe game using C++ that enables two players to play turn by turn and declare the results if any Player won or that was a Draw!

Tic-Tac-Toe is a 2 player game which has a matrix of 3x3 in which each player has to mark their symbol (in this project 'O' for player 1 and 'X' for player 2) in the space that isn't already occupied.


If any player marks 3 columns or rows or diagonal consecutive blocks without the interruption of other player, that player wins the game.


If any player tries to mark an already occupied space, the code will let him know the move is invalid and asks them to enter their choice again.


It's a basic C++ project which focuses on matrix manipulation with respect to the choice provided by the user.

Download Complete Code


No comments yet