#include
#define X 8
#define Y 8
int chess[X][Y];
int nextxy(int *x, int *y, int count)
{
switch(count)
{
case 0:
if(*x+2<=X-1 && *y-1>=0 && chess[*x+2][*y-1]==0)
{
*x=*x+2;
*y=*y-1;
return 1;
}
break;
case 1:>
if(*x+2<=X-1 && *y+1<=Y-1 && chess[*x+2][*y+1]==0)
{
*x=*x+2;
*y=*y+1;
return 1;
}
讯飞输入法AI
正在检测声纹信息
break;
case 2:
if(*x+1<=X-1 && *y-2>=0 && chess[*x+1][*y-2]==0)
{
*x=*x+1;
*y=*y-2;
return 1;
}
break;
case 3:
if(*x+1<=X-1 && *y+2<=Y-1 && chess[*x+1][*y+2]==0)
{
*x=*x+1;
*y=*y+2;
return 1;
}
break;
case 4:
if(*x-2>=0 && *y-1>=0 && chess[*x-2][*y-1]==0)
正在构建
声纹分析框架
{
*x=*x-2;
*y=*y-1;
return 1;
}