how do I assign char array 'startData'
int main()
{
Player plyr_1('X');
Player plyr_2('O');
char startData[8][8] = {{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ','O','X',' ',' ',' '},
{' ',' ',' ','X','O',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ',' ',' ',' '}};
at the start of this loop
menu = false;
while(menu == false)
{
int turnCounter = 1;
Player currentPlyr('X');
currentPlyr = plyr_1;
plyr_1.data = startData;
plyr_2.data = startData;
plyr_1.score = 2;
plyr_2.score = 2;
selectMenu = currentPlyr.mainMenu();
inside array 'data' in created class 'plyr_1' and 'plyr_2'
'data' is a public char array from class 'Game'
class Game
{
public:
char data[8][8];
to reset the board everytime the loop starts?
Thanks