1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Don't probe TT at RootNode

In that case we should also update RootMoveList to avoid
bogus output

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2011-07-29 00:02:50 +03:00 committed by Marco Costalba
parent 2e2a4b4ea3
commit ce619b3b6c

View file

@ -770,8 +770,9 @@ namespace {
// At PV nodes we check for exact scores, while at non-PV nodes we check for // At PV nodes we check for exact scores, while at non-PV nodes we check for
// a fail high/low. Biggest advantage at probing at PV nodes is to have a // a fail high/low. Biggest advantage at probing at PV nodes is to have a
// smooth experience in analysis mode. // smooth experience in analysis mode. We don't probe at Root nodes otherwise
if (tte && (PvNode ? tte->depth() >= depth && tte->type() == VALUE_TYPE_EXACT // we should also update RootMoveList to avoid bogus output.
if (!RootNode && tte && (PvNode ? tte->depth() >= depth && tte->type() == VALUE_TYPE_EXACT
: ok_to_use_TT(tte, depth, beta, ss->ply))) : ok_to_use_TT(tte, depth, beta, ss->ply)))
{ {
TT.refresh(tte); TT.refresh(tte);