Create a class TicTacToe that enables you to write a program to play the game of tic –tac-toe.
The class contains as private data a 3-by-3 double array of integers. The constructor should initialise the empty board to all zeros.
Allow two players. Wherever the first player moves, place a ‘1’ or ‘X” in the specified square; place a ‘2’ or ‘O’ wherever the second player moves. Each move must be an empty square.
After each move determine if the game is won or if it is a draw. The program should indicate to the player to make the next move and announce win and draw to the player.
Exercise creativity and object oriented approach in your program design and you may add other data or member functions. Also, you should make your program as friendly as possible to the users.
thanks for the help:cheesy: