(Solved):(C++) The files must be named: Board.hpp, Board.cpp, TicTacToe.hpp and TicTacToe.cpp Write a class called Board that represents a tic-tac-toe board. It should have a 3×3 array as a data member, whi… View Answer…

 

Question

(C++) The files must be named: Board.hpp, Board.cpp, TicTacToe.hpp and TicTacToe.cpp

Write a class called Board that represents a tic-tac-toe board. It should have a 3×3 array as a data member, which will store the locations of the players’ moves. It should have a default constructor that initializes the 3×3 array to being empty. It should have a method called makeMove that takes the x and y coordinates of the move

Scroll to top