mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Null move dynamic reduction based on value
After 994 games at 1+0 Mod vs Orig +244 =521 -229 50.75% 504.5/994 +5 ELO Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
a530fc2b60
commit
314faa905a
1 changed files with 7 additions and 1 deletions
|
@ -1314,7 +1314,13 @@ namespace {
|
||||||
ss[ply].currentMove = MOVE_NULL;
|
ss[ply].currentMove = MOVE_NULL;
|
||||||
|
|
||||||
pos.do_null_move(st);
|
pos.do_null_move(st);
|
||||||
int R = (depth >= 5 * OnePly ? 4 : 3); // Null move dynamic reduction
|
|
||||||
|
// Null move dynamic reduction based on depth
|
||||||
|
int R = (depth >= 5 * OnePly ? 4 : 3);
|
||||||
|
|
||||||
|
// Null move dynamic reduction based on value
|
||||||
|
if (approximateEval - beta > PawnValueMidgame)
|
||||||
|
R++;
|
||||||
|
|
||||||
nullValue = -search(pos, ss, -(beta-1), depth-R*OnePly, ply+1, false, threadID);
|
nullValue = -search(pos, ss, -(beta-1), depth-R*OnePly, ply+1, false, threadID);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue