#include<iostream>
#include<string.h>
#include<windows.h>
using namespace std;
#define N 10
int str[N][N];
bool win(int i,int j,int flag);
bool row(int i,int flag);
bool col(int j,int flag);
bool decumbent(int i,int j,int flag);
bool downward(int i,int j,int flag);
bool full();
void main()
{
int i,j;
for(i=1;i<=N;i++)
{
for(j=1;j<=N;j++)
str[i][j]=0;
}
for(i=1;i<=N;i++)
{
for(j=1;j<=N;j++)
{
if(j!=1)
cout<<"━";
else cout<<" ";
cout<<str[i][j];
}
cout<<endl;
if(i!=10)
cout<<"┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃"<<endl;
}
while(1)
{
i=j=1;
cout<<"1号选手,请输入您要下的棋子位置x,y:"<<endl;
cin>>i>>j;
int t1=i;
int t2=j;
while(str[i][j]!=0||i>10||j>10)
{
cout<<"该位置不合法,请重新输入您要下的棋子位置x,y:"<<endl;
cin>>i>>j;
}
str[i][j]=1;
system("cls");
for(i=1;i<=N;i++)
{
for(j=1;j<=N;j++)
{
if(j!=1)
cout<<"━";
else cout<<" ";
cout<<str[i][j];
}
cout<<endl;
if(i!=10)
cout<<"┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃"<<endl;
}