Skip to content

Commit 0559eba

Browse files
Vizvezdenecsnicolet
authored andcommitted
Tweak trapped rook penalty
This patch greatly increases the endgame penalty for having a trapped rook. Idea was a result of witnessing Stockfish losing some games at CCCC exchanging pieces in the position with a trapped rook which directly lead to a lost endgame. This patch should partially fix such behavior making this penalty high even in deep endgames. Passed STC http://tests.stockfishchess.org/tests/view/5e279d7cc3b97aa0d75bc1c4 LLR: 2.94 (-2.94,2.94) {-1.00,3.00} Total: 8528 W: 1706 L: 1588 D: 5234 Ptnml(0-2): 133, 957, 1985, 1024, 159 Passed LTC http://tests.stockfishchess.org/tests/view/5e27aee4c3b97aa0d75bc1e1 LLR: 2.95 (-2.94,2.94) {0.00,2.00} Total: 88713 W: 11520 L: 11130 D: 66063 Ptnml(0-2): 646, 8170, 26342, 8492, 676 Closes official-stockfish/Stockfish#2510 Bench: 4964462 ---------------------- Comment by Malcolm Campbell: Congrats! I think this might be a common pattern - scores that seem to mainly apply to the midgame are often better with a similar (or at least fairly big) endgame value as well. Maybe there are others eval parameters we can tweak like this...
1 parent a39c7d1 commit 0559eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ namespace {
145145
constexpr Score ThreatByKing = S( 24, 89);
146146
constexpr Score ThreatByPawnPush = S( 48, 39);
147147
constexpr Score ThreatBySafePawn = S(173, 94);
148-
constexpr Score TrappedRook = S( 52, 10);
148+
constexpr Score TrappedRook = S( 52, 30);
149149
constexpr Score WeakQueen = S( 49, 15);
150150

151151
#undef S

0 commit comments

Comments
 (0)