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
|
||||
if (str.length() > 4) {
|
||||
if (board.GetPieceColor(from) != board.GetPieceColor(to)) {
|
||||
if (board.occupied.IsSet(to)) {
|
||||
switch(str[4]) {
|
||||
case 'r':
|
||||
flag = rookPromoCapture;
|
||||
|
||||
Reference in new issue
Block a user