mirror of
https://github.com/sockspls/badfish
synced 2025-07-13 20:49:15 +00:00
In razor qsearch use corrected beta
Correct beta by razor margin when callin qsearch After 1019 games on Joona's QUAD Mod - Orig: 524 - 495 (+10 elo) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
87507121d5
commit
989833205f
1 changed files with 3 additions and 2 deletions
|
@ -1360,8 +1360,9 @@ namespace {
|
||||||
&& ttMove == MOVE_NONE
|
&& ttMove == MOVE_NONE
|
||||||
&& !pos.has_pawn_on_7th(pos.side_to_move()))
|
&& !pos.has_pawn_on_7th(pos.side_to_move()))
|
||||||
{
|
{
|
||||||
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
Value rbeta = beta - RazorMargins[int(depth) - 2];
|
||||||
if (v < beta - RazorMargins[int(depth) - 2])
|
Value v = qsearch(pos, ss, rbeta-1, rbeta, Depth(0), ply, threadID);
|
||||||
|
if (v < rbeta)
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue