Merge branch 'legalMovegen' of https://github.com/rektdie/Eleanor into legalMovegen
This commit is contained in:
commit
fb244264a4
1 file changed
+1
-1
+1
-1
@@ -34,7 +34,7 @@ Move parseMove(Board &board, std::string_view str) {
|
|||||||
|
|
||||||
// Promotion
|
// Promotion
|
||||||
if (str.length() > 4) {
|
if (str.length() > 4) {
|
||||||
if (board.GetPieceColor(from) != board.GetPieceColor(to)) {
|
if (board.occupied.IsSet(to)) {
|
||||||
switch(str[4]) {
|
switch(str[4]) {
|
||||||
case 'r':
|
case 'r':
|
||||||
flag = rookPromoCapture;
|
flag = rookPromoCapture;
|
||||||
|
|||||||
Reference in new issue
Block a user