From f1d8a6695ee2653f6983e542161eb6321206488c Mon Sep 17 00:00:00 2001 From: syzygy1 <3028851+syzygy1@users.noreply.github.com> Date: Tue, 30 Jan 2018 20:41:56 +0100 Subject: [PATCH] Updated to "Retire lever". https://github.com/official-stockfish/Stockfish/commit/2e11388581aca5232b54437a4338012bcf7a5ff7 --- src/pawns.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/pawns.c b/src/pawns.c index 197d27ec..de1df450 100644 --- a/src/pawns.c +++ b/src/pawns.c @@ -40,12 +40,6 @@ static Score Connected[2][2][3][8]; // Doubled pawn penalty static const Score Doubled = S(18,38); -// Lever bonus by rank -static const Score Lever[8] = { - S( 0, 0), S( 0, 0), S(0, 0), S(0, 0), - S(17, 16), S(33, 32), S(0, 0), S(0, 0) -}; - // Weakness of our pawn shelter in front of the king by // [isKingFile][distance from edge][rank]. RANK_1 = 0 is used for // files where we have no pawns or our pawn is behind our king. @@ -182,9 +176,6 @@ INLINE Score pawn_evaluate(const Pos *pos, PawnEntry *e, const int Us) if (doubled && !supported) score -= Doubled; - - if (lever) - score += Lever[relative_rank_s(Us, s)]; } return score;