From: Marco Costalba Date: Sun, 23 Jan 2011 09:52:51 +0000 (+0100) Subject: Retire InitialDepth X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6849f0800e82845271ad5888600c141857e744ec Retire InitialDepth No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index e98ea81d..8cdd7a21 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -233,11 +233,6 @@ namespace { template 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)