int main()
{
char xo[4][4];
int x,y;
char m,p11,p22;
string p1,p2;
cout<<"1st player <ENTER Your NAME>\n"<<endl;
cin>>p1;
cout<<endl<<endl;
cout<<"2nd player <ENTER Your NAME>\n"<<endl;
cin>>p2;
cout<<endl<<endl;
cout<<p1<<" Please Select X OR O the Press Enter\n"<<endl;
cin>>m;
cout<<endl;
if(m=='X'||m=='x')
{
p11='x';
p22='o';
}
else if (m=='O'||m=='o')
{
p11='o';
p22='x';
}
else
{
cout<<"wrong value\n";
exit(0);
}
for(int i=0;i<16;i++)
{
cout<<p1<<endl<<endl; //ply 1
for(int i=0;i>=0;i++)
{
cout<<"Please Enter The Number Of the row\n";
cin>>x;
cout<<"Please Enter The Number Of the Column\n";
cin>>y;
if(x>3||y>3)
{
cout<<"Please enter the numbers for the row and column less than 4\n"<<endl;
cout<<p2<<endl<<endl; //ply 2
for(int i=0;i>=0;i++)
{
cout<<"Please Enter The Number Of the row\n";
cin>>x;
cout<<"Please Enter The Number Of the Column\n";
cin>>y;
if(x>3||y>3)
{
cout<<"Please enter the numbers for the row and column less than 4\n"<<endl;