Skip to content

Commit

Permalink
In razor qsearch use corrected beta
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcostalba committed Nov 22, 2009
1 parent 8750712 commit 9898332
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search.cpp
Expand Up @@ -1360,8 +1360,9 @@ namespace {
&& ttMove == MOVE_NONE
&& !pos.has_pawn_on_7th(pos.side_to_move()))
{
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
if (v < beta - RazorMargins[int(depth) - 2])
Value rbeta = beta - RazorMargins[int(depth) - 2];
Value v = qsearch(pos, ss, rbeta-1, rbeta, Depth(0), ply, threadID);
if (v < rbeta)
return v;
}

Expand Down

0 comments on commit 9898332

Please sign in to comment.