X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=ceacca82d53b8932fe8526fbbfdc97116ba3992e;hp=915cd0ce22771aab12bf45e2a43e35bbcb8a4743;hb=2e11388581aca5232b54437a4338012bcf7a5ff7;hpb=0a5b03af3f4291c11d1eb28bcfa607471ba81fd1 diff --git a/src/pawns.cpp b/src/pawns.cpp index 915cd0ce..ceacca82 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -43,12 +43,6 @@ namespace { // Doubled pawn penalty const Score Doubled = S(18, 38); - // Lever bonus by rank - const Score Lever[RANK_NB] = { - 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. const Value ShelterWeakness[][int(FILE_NB) / 2][RANK_NB] = { @@ -184,9 +178,6 @@ namespace { if (doubled && !supported) score -= Doubled; - - if (lever) - score += Lever[relative_rank(Us, s)]; } return score;