Skip to content

Commit 2d0af36

Browse files
protonspringsnicolet
authored andcommitted
Simplify TrappedRook
Simplified TrappedRook to a single penalty removing the dependency on mobility. STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 106718 W: 23530 L: 23577 D: 59611 http://tests.stockfishchess.org/tests/view/5c43f6bd0ebc5902bb5d4131 LTC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 54053 W: 8890 L: 8822 D: 36341 http://tests.stockfishchess.org/tests/view/5c44932a0ebc5902bb5d4d59 bench 3665090
1 parent 58d3ee6 commit 2d0af36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/evaluate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace {
168168
constexpr Score ThreatByPawnPush = S( 48, 39);
169169
constexpr Score ThreatByRank = S( 13, 0);
170170
constexpr Score ThreatBySafePawn = S(173, 94);
171-
constexpr Score TrappedRook = S( 96, 4);
171+
constexpr Score TrappedRook = S( 47, 4);
172172
constexpr Score WeakQueen = S( 49, 15);
173173
constexpr Score WeakUnopposedPawn = S( 12, 23);
174174

@@ -377,7 +377,7 @@ namespace {
377377
{
378378
File kf = file_of(pos.square<KING>(Us));
379379
if ((kf < FILE_E) == (file_of(s) < kf))
380-
score -= (TrappedRook - make_score(mob * 22, 0)) * (1 + !pos.castling_rights(Us));
380+
score -= TrappedRook * (1 + !pos.castling_rights(Us));
381381
}
382382
}
383383

0 commit comments

Comments
 (0)