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

}

if not in PV and not in check...but what is

- Code: Select all
`(abs(beta - 1) > -INF+100))`

won't beta almost always be greater than the low mate limit?