Question: i need a solution for nine board tictactoe in c++ language below are some hints to make it Write computer program to facilitate nine-board Tic-Tac-Toe

i need a solution for nine board tictactoe in c++ language below are some hints to make it

Write computer program to facilitate nine-board Tic-Tac-Toe game playing between human players, computer players, or computer player vs human player. The program must be written in C++ using object-oriented paradigm. Ultimate tic-tac-toe is a board game composed of nine tic-tac-toe boards arranged in a 3 3 grid. Players take turns playing in the smaller tic-tac-toe boards until one of them wins in the larger tic-tac-toe board.

the following code is for a regular tic tac toe board, convert it to a nine board tic tac toe by doing the followingUsing C++ Edit the following code to Create class, named NineBoard, which contains at least two data members:

A 3*3 two-dimensional array of TicTacToe (or TicTacToe pointer) to store the objects of nine Tic-Tac-Toe game boards.

An instance (object/variable) of BoardCoordinate to store the coordinates of the current board to play.

The class should contain sufficient methods to implement the following functionalities:

Randomly generate the coordinates of the initial board to play in the class constructor

Accept human input of moves or randomly generate moves

Display all nine boards with information of the current board and update the display whenever a new move is added

Automatically switch current board based on the last move (5%). If a board has full, randomly choose another available board as the current board

Check if a player wins whenever a new move is added. Terminate the game if a player wins

Check if all nine boards are full. If yes, terminate the game as a draw

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!