mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 08:13:08 +00: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:
parent
da6e53a436
commit
6e05055f06
1 changed files with 5 additions and 2 deletions
|
@ -88,11 +88,14 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
|
|||
killers[0].move = ss->killers[0];
|
||||
killers[1].move = ss->killers[1];
|
||||
|
||||
// Consider sligtly negative captures as good if at low
|
||||
// depth and far from beta.
|
||||
// Consider sligtly negative captures as good if at low depth and far from beta
|
||||
if (ss && ss->eval < beta - PawnValueMidgame && d < 3 * ONE_PLY)
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue