mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Retire pawn span
Retire pawn span and replace with pawn count in evaluate_scale_factor. STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 26482 W: 4929 L: 4818 D: 16735 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 61938 W: 8400 L: 8335 D: 45203 Bench: 7662861
This commit is contained in:
committed by
Marco Costalba
parent
7396c08b79
commit
9585f8ef58
@@ -758,9 +758,9 @@ namespace {
|
||||
// Endings where weaker side can place his king in front of the opponent's
|
||||
// pawns are drawish.
|
||||
else if ( abs(eg) <= BishopValueEg
|
||||
&& ei.pi->pawn_span(strongSide) <= 1
|
||||
&& pos.count<PAWN>(strongSide) <= 2
|
||||
&& !pos.pawn_passed(~strongSide, pos.square<KING>(~strongSide)))
|
||||
sf = ei.pi->pawn_span(strongSide) ? ScaleFactor(51) : ScaleFactor(37);
|
||||
sf = ScaleFactor(37 + 7 * pos.count<PAWN>(strongSide));
|
||||
}
|
||||
|
||||
return sf;
|
||||
|
||||
Reference in New Issue
Block a user