Permalink
Browse files

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>
  • Loading branch information...
1 parent 8750712 commit 989833205fb63de094c1f28e1c5f803bc8a917e4 @mcostalba committed Nov 18, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/search.cpp
View
@@ -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;
}

0 comments on commit 9898332

Please sign in to comment.