Skip to content

Commit 13d06ed

Browse files
protonspringsnicolet
authored andcommitted
Two simplifications in passed pawns evaluation
These two simplifications appear to be affecting and/or offsetting each other. Neither can be removed independently, but in combination they pass -3,1. STC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 36391 W: 7888 L: 7795 D: 20708 http://tests.stockfishchess.org/tests/view/5b9bce410ebc592cf275f1b2 LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 19513 W: 3237 L: 3114 D: 13162 http://tests.stockfishchess.org/tests/view/5b9c0edf0ebc592cf275f80e Closes #1769 bench 4059356
1 parent 49b1591 commit 13d06ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/evaluate.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ namespace {
159159
constexpr Score CloseEnemies = S( 6, 0);
160160
constexpr Score CorneredBishop = S( 50, 50);
161161
constexpr Score Hanging = S( 57, 32);
162-
constexpr Score HinderPassedPawn = S( 8, 0);
163162
constexpr Score KingProtector = S( 6, 6);
164163
constexpr Score KnightOnQueen = S( 21, 11);
165164
constexpr Score LongDiagonalBishop = S( 46, 0);
@@ -638,9 +637,6 @@ namespace {
638637

639638
assert(!(pos.pieces(Them, PAWN) & forward_file_bb(Us, s + Up)));
640639

641-
if (forward_file_bb(Us, s) & pos.pieces(Them))
642-
score -= HinderPassedPawn;
643-
644640
int r = relative_rank(Us, s);
645641
int w = PassedDanger[r];
646642

@@ -688,8 +684,6 @@ namespace {
688684

689685
bonus += make_score(k * w, k * w);
690686
}
691-
else if (pos.pieces(Us) & blockSq)
692-
bonus += make_score(w + r * 2, w + r * 2);
693687
} // w != 0
694688

695689
// Scale down bonus for candidate passers which need more than one

0 commit comments

Comments
 (0)