]> git.sesse.net Git - stockfish/commitdiff
Bunch of 3 small patches
authorUri Blass <uriblass@gmail.com>
Tue, 21 May 2013 22:58:52 +0000 (01:58 +0300)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 23 May 2013 15:59:39 +0000 (17:59 +0200)
This patch is the sum of:

- Grainsize of 4 instead of 8

- Removing "depth < DEPTH_ZERO"

- Change DEPTH_QS_RECAPTURES = -5 to -7

All the patches individually failed to pass SPRT but scored
around 50%.

Together they pass easily short TC:
LLR: 2.96 (-2.94,2.94)
Total: 4429 W: 964 L: 844 D: 2621

And with some difficult long TC of 60+0.05:
LLR: 2.95 (-2.94,2.94)
Total: 64133 W: 11968 L: 11532 D: 40633

bench: 4821467

src/evaluate.cpp
src/search.cpp
src/types.h

index d8c18ed8685e579700c89660d422cdb622f67a37..2de96eb93d79e9ec1c544d8854497b2556c9c7e9 100644 (file)
@@ -72,7 +72,7 @@ namespace {
   };
 
   // Evaluation grain size, must be a power of 2
-  const int GrainSize = 8;
+  const int GrainSize = 4;
 
   // Evaluation weights, initialized from UCI options
   enum { Mobility, PassedPawns, Space, KingDangerUs, KingDangerThem };
index 8ba5b41af8be9cf182a02650dc9457d7fa515239..c6ee8c86b9c425ff7e55b618ce77070f9b618914 100644 (file)
@@ -1251,7 +1251,6 @@ split_point_start: // At split points actual search starts from here
           // Prune moves with negative or equal SEE and also moves with positive
           // SEE where capturing piece loses a tempo and SEE < beta - futilityBase.
           if (   futilityBase < beta
-              && depth < DEPTH_ZERO
               && pos.see(move, beta - futilityBase) <= 0)
           {
               bestValue = std::max(bestValue, futilityBase);
index cd0d361953663f2aeaf911662b430fa62e83ecaa..1e036e8997ce421437ef2632594d80b148043129 100644 (file)
@@ -213,7 +213,7 @@ enum Depth {
   DEPTH_ZERO          =  0 * ONE_PLY,
   DEPTH_QS_CHECKS     = -1 * ONE_PLY,
   DEPTH_QS_NO_CHECKS  = -2 * ONE_PLY,
-  DEPTH_QS_RECAPTURES = -5 * ONE_PLY,
+  DEPTH_QS_RECAPTURES = -7 * ONE_PLY,
 
   DEPTH_NONE = -127 * ONE_PLY
 };