mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Take in account odd depths in razoring formula
This is somewhat taken from Stockfish 1.2 Default, only the razoring thresold are updated, not the razoring depth. At the end razoring is a bit more aggressive. Results seems slightly positive. After 999 games +239 =536 -224 Elo +5 Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e828753a3a
commit
dc4e2d8184
1 changed files with 2 additions and 2 deletions
|
@ -1247,8 +1247,8 @@ namespace {
|
||||||
{
|
{
|
||||||
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
Value v = qsearch(pos, ss, beta-1, beta, Depth(0), ply, threadID);
|
||||||
if ( (v < beta - RazorMargin - RazorMargin / 4)
|
if ( (v < beta - RazorMargin - RazorMargin / 4)
|
||||||
|| (depth <= 2*OnePly && v < beta - RazorMargin)
|
|| (depth < 3*OnePly && v < beta - RazorMargin)
|
||||||
|| (depth <= OnePly && v < beta - RazorMargin / 2))
|
|| (depth < 2*OnePly && v < beta - RazorMargin / 2))
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue