Skip to content

Commit

Permalink
Updated to "Retire lever".
Browse files Browse the repository at this point in the history
  • Loading branch information
syzygy1 committed Jan 30, 2018
1 parent 1f81fe3 commit f1d8a66
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/pawns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f1d8a66

Please sign in to comment.