Merge pull request #23 from ecobabush/master
Devasa-chess pawn promotion bugfix like in glinski-chess. Many thanks for the fix !
This commit is contained in:
commit
055f63a977
1 changed files with 3 additions and 3 deletions
|
@ -148,9 +148,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 [];
|
||||
},
|
||||
|
@ -230,4 +230,4 @@
|
|||
};
|
||||
}
|
||||
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue