1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Retire small bonus in passed pawn evaluation

STC: http://tests.stockfishchess.org/tests/view/5899824d0ebc59099759f3ee
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 33370 W: 6061 L: 5961 D: 21348

LTC: http://tests.stockfishchess.org/tests/view/5899e3820ebc59099759f415
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 36206 W: 4664 L: 4563 D: 26979

Bench: 6072262

Closes #998
This commit is contained in:
torfranz 2017-02-10 16:52:34 -08:00 committed by Joona Kiiski
parent a753e20bd4
commit e0d91f4c44

View file

@ -667,10 +667,6 @@ namespace {
mbonus += rr + r * 2, ebonus += rr + r * 2;
} // rr != 0
// Assign a small bonus when the opponent has no pieces left
if (!pos.non_pawn_material(Them))
ebonus += 20;
// Scale down bonus for candidate passers which need more than one pawn
// push to become passed.
if (!pos.pawn_passed(Us, s + pawn_push(Us)))