Merge branch 'legalMovegen' of https://github.com/rektdie/Eleanor into legalMovegen

This commit is contained in:
rektdie committed 2025-03-13 10:21:49 +01:00
commit fb244264a4
1 file changed
+1 -1
+1 -1
View File
@@ -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;