Merge pull request #24 from ecobabush/master

Brusky chess pawn promotion bugfix.
This commit is contained in:
Michel Gutierrez 2017-09-18 15:50:37 +02:00 committed by GitHub
commit 3ac8a77e31

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 @@
};
}
})();
})();