mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Set captureThreshold according to static evaluation
Consider negative captures as good if still enough to reach beta. After 7502 games: Mod vs Orig 1225 - 1158 - 5119 ELO +3 (+- 4.5) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -88,11 +88,14 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
|
|||||||
killers[0].move = ss->killers[0];
|
killers[0].move = ss->killers[0];
|
||||||
killers[1].move = ss->killers[1];
|
killers[1].move = ss->killers[1];
|
||||||
|
|
||||||
// Consider sligtly negative captures as good if at low
|
// Consider sligtly negative captures as good if at low depth and far from beta
|
||||||
// depth and far from beta.
|
|
||||||
if (ss && ss->eval < beta - PawnValueMidgame && d < 3 * ONE_PLY)
|
if (ss && ss->eval < beta - PawnValueMidgame && d < 3 * ONE_PLY)
|
||||||
captureThreshold = -PawnValueMidgame;
|
captureThreshold = -PawnValueMidgame;
|
||||||
|
|
||||||
|
// Consider negative captures as good if still enough to reach beta
|
||||||
|
else if (ss && ss->eval > beta)
|
||||||
|
captureThreshold = beta - ss->eval;
|
||||||
|
|
||||||
phasePtr = MainSearchTable;
|
phasePtr = MainSearchTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user