Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a second margin to razoring

Razor on ply one if the advantage is more then a pawn,
the only way to gap the advantage is to capture, so
go directly in quiesce.

This seems to have a positive effect.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information...
commit 4fa5dd4db55ba9fde841120fc8fbcd99f6540eb4 1 parent 58c7a5c
@mcostalba authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/search.cpp
View
3  src/search.cpp
@@ -1122,7 +1122,8 @@ namespace {
}
}
// Null move search not allowed, try razoring
- else if (depth < RazorDepth && approximateEval < beta - RazorMargin)
+ else if ( (approximateEval < beta - RazorMargin && depth < RazorDepth)
+ ||(approximateEval < beta - PawnValueMidgame && depth <= OnePly))
{
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
if (v < beta)
Please sign in to comment.
Something went wrong with that request. Please try again.