Coders Packet

Tic Tac Toe Game Using 1D Array in C++

By deepali takyar

It is a Short Game in C++ using Arrays in which 2 players can play by marking 'X' or '0' in a 3*3 grid.


Tic Tac Toe Game


It is a Tic-tac-toe Game in C++, noughts, and crosses, or Xs and Os. 

It is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. Using this code you can play this Tic-Tac-Toe Game on your pc/laptop.

The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner. 

Player1 will use '0' in the grid.

Player2 will use 'X' in the grid.

Download project

Reviews Report

Submitted by deepali takyar (dtakyar30)

Download packets of source code on Coders Packet