Question: Task 1 (5%): Create a struct, named BoardCoordinate, with two public data members of int to represent the coordinate of a board in a NineBoard

Task 1 (5%): Create a struct, named BoardCoordinate, with two public data members of int to represent the coordinate of a board in a NineBoard Tic Tac Toe game. Task 2 (10%): Combine your solution to Practical Tasks 3.3, 3.4, 4.3, 4.4 and 4.5 into a complete object-oriented solution to single board Tic-Tac-Toe game. The class name of a single Tic-Tac-Toe board should be TicTacToe as required in Practical Task 4.3. Task 3 (45%): Create a class, named NineBmld. which contains at least two data members (5%): o A 3*3 two-dimensional array of TicTacToe (or TicTacToe pointer) to store the objects of nine Tic-Tac-Toe game boards. 0 An instance (objectlvariable) of BoardCoordinate to store the coordinates of the current board to play. The class should contain sufficient methods to implement the following functionalities: o Randomly generate the coordinates of the initial board to play in the class constructor (5%). 0 Accept human input of moves or randomly generate moves (5%) 0 Display all nine boards with information of the current board and update the display whenever a new move is added (10%). 0 Automatically switch current board based on the last move (5%). If a board has full, randomly choose another available board as the current board (5%)

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!