Hello, I am making a simple tic tac toe game, with no AI, it's just for two players. I decided to use a 2 dimensional array for the board. What I want to do is output the board so the player can see it. But would I have to type out each slot so the user can see it, or can I show the whole array to player. LIke this:
Code:
void gBoard()
{
system("CLS");
int board[3][3]={1,2,3,4,5,6,7,8,9};
cout << board[1][1];
cout << board[1][2];
cout << board[1][3];
}
Would I have to keep going like cout << board[1][1], or could I just show the whole board. Please tell me how.