/ 如果是红棋在对手的地盘 红卒
function Hong_zu_in_enemy(){
//左移1=45-44(现在点击的)可以执行
if(1==(window.xiangqi.prev_num-window.xiangqi.now_num)){
executeQizi();
//右移原来数字加1,可是写了没反应,不能执行
}else if(window.xiangqi.now_num==(window.xiangqi.prev_num +1)){
executeQizi();
//向前+10 可以执行
}else if(10==(window.xiangqi.prev_num-window.xiangqi.now_num)){
executeQizi();//yiqi移棋
}
window.xiangqi.now='heizi';
}
//黑方棋卒走对方红棋地盘规则
function Heizu_inenemy(){
if(1==window.xiangqi.now_num-window.xiangqi.prev_num||1==window.xiangqi.prev_num-window.xiangqi.now_num){
executeQizi();
}
window.xiangqi.now='hongzi';
}