Task 1 (5%): Create a struct, named BoardCoordinate, with two public data
members of int to represent the coordinate of a board in a Nine-Board 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 NineBoard, which contains at least two
data members (5%):
• 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 (5%).
• Accept human input of moves or randomly generate moves (5%)
• Display all nine boards with information of the current board and
update the display whenever a new move is added (10%).
• 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%).
• Check if a player wins whenever a new move is added. Terminate the
#Sales Offer!| Get upto 25% Off: