amp; point.y==3)||
( point.x==3&& point.y==1)||
( point.x==3&& point.y==5)||
( point.x==5&& point.y==3)||
( point.x==7&& point.y==1)||
( point.x==7&& point.y==5)||
( point.x==9&& point.y==3)
))return FALSE;
break;
case BLACK_B:
//兵不能在兵位后:
if( point.y<4)return FALSE;
//兵过河前不能左右移动:
if( point.y<6&& point.x%2==0)return FALSE;
break;
default:
break;
}
return TRUE;
}
void FixManMap(int map[11][12],POINT manpoint[32],int side)
{
memcpy(map,_defaultmap,132*sizeof(int));
static POINT * pman;
static int i;
for(i=0;i<32;i++)
{
pman = & manpoint[i];
if(pman->x)
map[pman->x][pman->y]=i;
}
}
上一篇:
MantisChessDraw.cpp
下一篇:
关联分类方法在铝电解中的应用研究