.
a. Create a class TicTacToe that will enable you to write aprogram to play Tic-Tac-Toe. The class contains a private 3-by-3two-dimensional integer array where 1 represents X, 0 representsavailable/empty, -1 represents O. The constructor should initializethe board elements to empty. Allow two human players. Wherever thefirst player moves, place a 1 in the specified square, and place a-1 wherever the second player moves. Each move must be to an emptysquare. After each move, determine whether the game has been wonand whether it’s a draw. If it is a win then print which player wonand if it’s a draw then reinitialize
PayPal Gateway not configured
PayPal Gateway not configured