We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7194bd commit 69d3be4Copy full SHA for 69d3be4
src/evaluate.cpp
@@ -789,7 +789,8 @@ namespace {
789
&& (attacks_bb<KING>(pos.square<KING>(~strongSide)) & pos.pieces(~strongSide, PAWN)))
790
sf = 36;
791
else if (pos.count<QUEEN>() == 1)
792
- sf = 37;
+ sf = 37 + 3 * (pos.count<QUEEN>(WHITE) == 1 ? pos.count<BISHOP>(BLACK) + pos.count<KNIGHT>(BLACK)
793
+ : pos.count<BISHOP>(WHITE) + pos.count<KNIGHT>(WHITE));
794
else
795
sf = std::min(sf, 36 + 7 * pos.count<PAWN>(strongSide));
796
}
0 commit comments