]> git.sesse.net Git - stockfish/commitdiff
Revert "IID in pv also when TT move depth is too small"
authorMarco Costalba <mcostalba@gmail.com>
Sat, 7 Nov 2009 18:45:13 +0000 (19:45 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 7 Nov 2009 18:46:36 +0000 (19:46 +0100)
After almost 900 games we are at -2 ELO

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 3cd54b00fd0e8889556dbc0f867feb3d170d572d..15609966438313776e47204d947c46e585a68b67 100644 (file)
@@ -1103,11 +1103,8 @@ namespace {
     tte = TT.retrieve(pos.get_key());
     ttMove = (tte ? tte->move() : MOVE_NONE);
 
-    // Go with internal iterative deepening if we don't have a TT move or
-    // if search depth is more then 4*OnePly higher then TT move depth.
-    if (   UseIIDAtPVNodes
-        && depth >= 5*OnePly
-        &&(!ttMove || depth > tte->depth() + 4*OnePly))
+    // Go with internal iterative deepening if we don't have a TT move
+    if (UseIIDAtPVNodes && ttMove == MOVE_NONE && depth >= 5*OnePly)
     {
         search_pv(pos, ss, alpha, beta, depth-2*OnePly, ply, threadID);
         ttMove = ss[ply].pv[ply];