Fix Betza notation for pawn drops
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 12 Jan 2020 21:07:46 +0000 (22:07 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 12 Jan 2020 21:07:46 +0000 (22:07 +0100)
src/ucioption.cpp

index c5e119a..2f354e1 100644 (file)
@@ -90,7 +90,7 @@ void on_variant_change(const Option &o) {
                     suffix += "f";
                 else if (pt == BISHOP && v->dropOppositeColoredBishop)
                     suffix += "s";
-                suffix += "@" + std::to_string(pt == PAWN ? v->promotionRank : v->maxRank + 1);
+                suffix += "@" + std::to_string(pt == PAWN && !v->promotionZonePawnDrops ? v->promotionRank : v->maxRank + 1);
             }
             sync_cout << "piece " << v->pieceToChar[pt] << "& " << pieceMap.find(pt)->second->betza << suffix << sync_endl;
             PieceType promType = v->promotedPieceType[pt];