Skip to content

Commit 2e11388

Browse files
torfranzmcostalba
authored andcommitted
Retire lever (#1378)
Retire the lever bonus from pawns evaluation STC: http://tests.stockfishchess.org/tests/view/5a6aef5c0ebc590d945d59c8 LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 88290 W: 19549 L: 19560 D: 49181 LTC: http://tests.stockfishchess.org/tests/view/5a6b70140ebc590d945d59f7 LLR: 3.22 (-2.94,2.94) [-3.00,1.00] Total: 104603 W: 18105 L: 18108 D: 68390 Bench 5023629
1 parent 0a5b03a commit 2e11388

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/pawns.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ namespace {
4343
// Doubled pawn penalty
4444
const Score Doubled = S(18, 38);
4545

46-
// Lever bonus by rank
47-
const Score Lever[RANK_NB] = {
48-
S( 0, 0), S( 0, 0), S(0, 0), S(0, 0),
49-
S(17, 16), S(33, 32), S(0, 0), S(0, 0)
50-
};
51-
5246
// Weakness of our pawn shelter in front of the king by [isKingFile][distance from edge][rank].
5347
// RANK_1 = 0 is used for files where we have no pawns or our pawn is behind our king.
5448
const Value ShelterWeakness[][int(FILE_NB) / 2][RANK_NB] = {
@@ -184,9 +178,6 @@ namespace {
184178

185179
if (doubled && !supported)
186180
score -= Doubled;
187-
188-
if (lever)
189-
score += Lever[relative_rank(Us, s)];
190181
}
191182

192183
return score;

0 commit comments

Comments
 (0)