mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08: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:
@@ -667,10 +667,6 @@ namespace {
|
|||||||
mbonus += rr + r * 2, ebonus += rr + r * 2;
|
mbonus += rr + r * 2, ebonus += rr + r * 2;
|
||||||
} // rr != 0
|
} // 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
|
// Scale down bonus for candidate passers which need more than one pawn
|
||||||
// push to become passed.
|
// push to become passed.
|
||||||
if (!pos.pawn_passed(Us, s + pawn_push(Us)))
|
if (!pos.pawn_passed(Us, s + pawn_push(Us)))
|
||||||
|
|||||||
Reference in New Issue
Block a user