From: Joona Kiiski Date: Sat, 3 Jul 2010 05:14:31 +0000 (+0300) Subject: Find balance between 1.7 and 1.8 reductions X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=05c54426332a16d4475b8233eebfc4288e0479e9 Find balance between 1.7 and 1.8 reductions Almost no change so commit because is a pruning reduction patch. After 1088 games at 1'+0 with QUAD Mod vs Orig +178 =727 -183 (-2 ELO) Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index d1642827..0afa0a28 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -342,8 +342,8 @@ void init_search() { // Init reductions array for (hd = 1; hd < 64; hd++) for (mc = 1; mc < 64; mc++) { - double pvRed = log(double(hd)) * log(double(mc)) / 3.0; - double nonPVRed = log(double(hd)) * log(double(mc)) / 1.5; + double pvRed = 0.33 + log(double(hd)) * log(double(mc)) / 4.5; + double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25; ReductionMatrix[PV][hd][mc] = (int8_t) ( pvRed >= 1.0 ? floor( pvRed * int(OnePly)) : 0); ReductionMatrix[NonPV][hd][mc] = (int8_t) (nonPVRed >= 1.0 ? floor(nonPVRed * int(OnePly)) : 0); }