Skip to content

Commit 69d3be4

Browse files
locutus2vondele
authored andcommitted
Tweak single queen endgame scaling.
Increase scaling factor for each minor of the opponent side of the queen. STC: LLR: 2.94 (-2.94,2.94) {-0.50,1.50} Total: 14528 W: 2860 L: 2653 D: 9015 Ptnml(0-2): 217, 1632, 3408, 1741, 266 https://tests.stockfishchess.org/tests/view/5ef98384020eec13834a96a0 LTC: LLR: 2.95 (-2.94,2.94) {0.25,1.75} Total: 34584 W: 4371 L: 4111 D: 26102 Ptnml(0-2): 205, 3080, 10501, 3262, 244 https://tests.stockfishchess.org/tests/view/5ef99972020eec13834a96c9 closes #2782 Bench: 4523573
1 parent c7194bd commit 69d3be4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/evaluate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ namespace {
789789
&& (attacks_bb<KING>(pos.square<KING>(~strongSide)) & pos.pieces(~strongSide, PAWN)))
790790
sf = 36;
791791
else if (pos.count<QUEEN>() == 1)
792-
sf = 37;
792+
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));
793794
else
794795
sf = std::min(sf, 36 + 7 * pos.count<PAWN>(strongSide));
795796
}

0 commit comments

Comments
 (0)