Skip to content

Commit bbee590

Browse files
committed
Razor Tuned Values Test
1 parent d926b89 commit bbee590

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/search.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace {
6666
enum NodeType { Root, PV, NonPV };
6767

6868
// Razoring and futility margin based on depth
69-
Value razor_margin(Depth d) { return Value(512 + 32 * d); }
69+
int razor_margin[4] = {483, 570, 603, 554};
7070
Value futility_margin(Depth d) { return Value(200 * d); }
7171

7272
// Futility and reductions lookup tables, initialized at startup
@@ -673,14 +673,14 @@ namespace {
673673
// Step 6. Razoring (skipped when in check)
674674
if ( !PvNode
675675
&& depth < 4 * ONE_PLY
676-
&& eval + razor_margin(depth) <= alpha
676+
&& eval + razor_margin[depth] <= alpha
677677
&& ttMove == MOVE_NONE)
678678
{
679679
if ( depth <= ONE_PLY
680-
&& eval + razor_margin(3 * ONE_PLY) <= alpha)
680+
&& eval + razor_margin[3 * ONE_PLY] <= alpha)
681681
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
682682

683-
Value ralpha = alpha - razor_margin(depth);
683+
Value ralpha = alpha - razor_margin[depth];
684684
Value v = qsearch<NonPV, false>(pos, ss, ralpha, ralpha+1, DEPTH_ZERO);
685685
if (v <= ralpha)
686686
return v;

0 commit comments

Comments
 (0)