Question: Please do in C++, HOMEWORK #15-Tic-Tac-Toe Game Wite arogram that allows two players to play the Tic-Tae-Toe game. Specifications: Your program must contain the class
Please do in C++,




HOMEWORK #15-Tic-Tac-Toe Game Wite arogram that allows two players to play the Tic-Tae-Toe game. Specifications: Your program must contain the class TicTacToe to implement a TicTacToe object. Include a 3x3 2D array as a private member variable, as well as a variable to store the number of moves as private member variables. Include additional public members: void play) /1 Function to play the game void displayBoard) const; Function to print the board bool isValidMove (int row, int col) const; // Function to determine if a move is valid bool getMove (char moveSymbol) /1 Function to get a move for a player status gameStatus) // Function to determine the current status of the game /1 Uses the status enumeration data type for members WIN, // DRAW, and CONTINUE void restart // Function to restart the game TicTacToe) /7 Default constructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
