#include<stdio.h>
#include<stdlib.h>
int length;
int map[100][100];
int player=1;
//打印初始的棋盘
void init()
{
int x,y;
for(x=0;x<length;x++)
{
for(y=0;y<length;y++)
if(map[x][y]==0)
printf(". ");
printf("\n");
}
}
//打印下棋过程中的棋盘
void showmap()
{
int x,y;
for(x=0;x<length;x++)
{
for(y=0;y<length;y++)
{
if(map[x][y]==0)
printf(". ");
else if(map[x][y]==1)
printf("O ");
else
printf("X ");
}
printf("\n");
}
}
//判断输赢
int check()
{
int i,j;
//横
for(i