1
0
Fork 0
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:
Marco Costalba 2009-01-05 12:41:27 +01:00
parent e828753a3a
commit dc4e2d8184

View file

@ -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;
} }