mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
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>
This commit is contained in:
parent
58c7a5c477
commit
4fa5dd4db5
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue