From: Fabian Fichter Date: Sun, 12 Jan 2020 21:07:46 +0000 (+0100) Subject: Fix Betza notation for pawn drops X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=270e38d9a4977cd9348d56d54e42ac3916bec744;p=fairystockfish.git Fix Betza notation for pawn drops --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index c5e119a..2f354e1 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -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];