I have all the way to this part of displaying the board and now I need help on how to play it. I don't want someone to just give me the code, I want to learn what to do. Thanks very much.
p.s.= using array
#include <iostream>
using namespace std;
void tictactoe(char board[3][3])
{
for(int i=1; i<=3; i++){
for(int j=1; j<=3; j++){
cout<< "["<< board[i][j] << "]";
}
cout<<endl;
}
}
int main()
{
char board[3][3];
char answer;
cout << "Welcome to Tic Tac Toe." <<endl;
cout << "Are you ready to play Tic Tac Toe?"<<endl;
cin >> answer;
if(answer=='y'){
tictactoe(board);
}
else {
cout << "Bye quiter." <<endl;
}
return 0;
}