1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

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
This commit is contained in:
Torsten Franz 2018-01-30 09:40:56 +01:00 committed by Marco Costalba
parent 0a5b03af3f
commit 2e11388581

View file

@ -43,12 +43,6 @@ namespace {
// Doubled pawn penalty // Doubled pawn penalty
const Score Doubled = S(18, 38); 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]. // 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. // 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] = { const Value ShelterWeakness[][int(FILE_NB) / 2][RANK_NB] = {
@ -184,9 +178,6 @@ namespace {
if (doubled && !supported) if (doubled && !supported)
score -= Doubled; score -= Doubled;
if (lever)
score += Lever[relative_rank(Us, s)];
} }
return score; return score;