Static NULL Move
Posted: Mon Dec 26, 2016 4:38 pm
Please explain what this code (from CPW) is doing.
if not in PV and not in check...but what is doing?
won't beta almost always be greater than the low mate limit?
Code: Select all
if (depth < 3
&& (!is_pv)
&& (!flagInCheck)
&& (abs(beta - 1) > -INF+100))
{
int static_eval = eval(alpha, beta, 1);
int eval_margin = 120 * depth;
if (static_eval - eval_margin >= beta)
return static_eval - eval_margin;
}
Code: Select all
(abs(beta - 1) > -INF+100))
won't beta almost always be greater than the low mate limit?