From: Fabian Fichter Date: Sat, 25 Jan 2020 22:49:56 +0000 (+0100) Subject: Fix Betza notation for royal fairy pieces X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=74c63cfd0894d9e38c6c68e96135963a6ed06842;p=fairystockfish.git Fix Betza notation for royal fairy pieces --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2f354e1..628f7ba 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -92,7 +92,7 @@ void on_variant_change(const Option &o) { suffix += "s"; 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; + sync_cout << "piece " << v->pieceToChar[pt] << "& " << pieceMap.find(pt == KING ? v->kingType : pt)->second->betza << suffix << sync_endl; PieceType promType = v->promotedPieceType[pt]; if (promType) sync_cout << "piece +" << v->pieceToChar[pt] << "& " << pieceMap.find(promType)->second->betza << sync_endl;