From cc3c1dc25a60335bceb9f07ef93aad81b366a717 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 29 Dec 2008 12:24:34 +0100 Subject: [PATCH] Stockfish 1.2 optimistic Optimistic razoring settings. It is stronger with most engines but weaker with someones. The default is instead more solid and uniform with all the opponents. Signed-off-by: Marco Costalba --- src/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3529627f..f7f62b23 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1241,14 +1241,14 @@ namespace { else if ( !value_is_mate(beta) && approximateEval < beta - RazorMargin && depth < RazorDepth - && (RazorAtDepthOne || depth >= 2*OnePly) + && (RazorAtDepthOne || depth > OnePly) && 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 - RazorMargin - RazorMargin / 4) - || (depth < 3*OnePly && v < beta - RazorMargin) - || (depth < 2*OnePly && v < beta - RazorMargin / 2)) + || (depth <= 2*OnePly && v < beta - RazorMargin) + || (depth <= OnePly && v < beta - RazorMargin / 2)) return v; } -- 2.39.2