Brusky chess pawn promotion bugfix.

It is like in Devasa chess by analogy with glinski chess.
This commit is contained in:
ecobabush 2017-09-13 11:38:19 +00:00 committed by GitHub
parent 57577dcd44
commit 37da8c2e67
1 changed files with 3 additions and 3 deletions

View File

@ -144,9 +144,9 @@
return [0];
else if(piece.t==3)
return [2];
else if(piece.t==0 && geometry.R(move.t)==7)
else if(piece.t==0 && (move.t in promo[1]))
return [4,5,6,7];
else if(piece.t==2 && geometry.R(move.t)==0)
else if(piece.t==2 && (move.t in promo[-1]))
return [4,5,6,7];
return [];
},
@ -226,4 +226,4 @@
};
}
})();
})();