]> git.sesse.net Git - stockfish/commitdiff
Retire InitialDepth
authorMarco Costalba <mcostalba@gmail.com>
Sun, 23 Jan 2011 09:52:51 +0000 (10:52 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 23 Jan 2011 09:52:51 +0000 (10:52 +0100)
No functional change.

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

index e98ea81debb47f443ec70aefb3d98d8c6e8871a6..8cdd7a21323033bd46706ef5264bb1911eb4a385 100644 (file)
@@ -233,11 +233,6 @@ namespace {
   template <NodeType PV>
   inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / 2, 63)][Min(mn, 63)]; }
 
-  // Common adjustments
-
-  // Search depth at iteration 1
-  const Depth InitialDepth = ONE_PLY;
-
   // Easy move margin. An easy move candidate must be at least this much
   // better than the second best move.
   const Value EasyMoveMargin = Value(0x200);
@@ -656,7 +651,7 @@ namespace {
         cout << "info depth " << iteration << endl;
 
         Rml.bestMoveChanges = researchCountFL = researchCountFH = 0;
-        depth = (iteration - 2) * ONE_PLY + InitialDepth;
+        depth = (iteration - 1) * ONE_PLY;
 
         // Calculate dynamic aspiration window based on previous iterations
         if (MultiPV == 1 && iteration >= 6 && abs(bestValues[iteration - 1]) < VALUE_KNOWN_WIN)