projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ea594ce
)
Fix Betza notation for pawn drops
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 12 Jan 2020 21:07:46 +0000 (22:07 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 12 Jan 2020 21:07:46 +0000 (22:07 +0100)
src/ucioption.cpp
patch
|
blob
|
history
diff --git
a/src/ucioption.cpp
b/src/ucioption.cpp
index
c5e119a
..
2f354e1
100644
(file)
--- 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];