From ce619b3b6ceb96bbf1e90f8281fdc89b9e64ec5e Mon Sep 17 00:00:00 2001 From: Joona Kiiski Date: Fri, 29 Jul 2011 00:02:50 +0300 Subject: [PATCH] Don't probe TT at RootNode In that case we should also update RootMoveList to avoid bogus output Signed-off-by: Marco Costalba --- src/search.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 94613260..fce0409b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -770,9 +770,10 @@ namespace { // 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 - // smooth experience in analysis mode. - if (tte && (PvNode ? tte->depth() >= depth && tte->type() == VALUE_TYPE_EXACT - : ok_to_use_TT(tte, depth, beta, ss->ply))) + // smooth experience in analysis mode. We don't probe at Root nodes otherwise + // 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))) { TT.refresh(tte); ss->bestMove = ttMove; // Can be MOVE_NONE -- 2.39.2