]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Add experimental contempt factor
[stockfish] / src / search.cpp
index 31edcc2f8845e37774cfb915163bccdcd2cc3577..77300708f1331104a07f744c9a703cc0aa1770f6 100644 (file)
@@ -546,7 +546,7 @@ namespace {
     {
         // Step 2. Check for aborted search and immediate draw
         if (Signals.stop || pos.is_draw<false>() || ss->ply > MAX_PLY)
-            return VALUE_DRAW;
+            return Eval::ValueDrawContempt;
 
         // Step 3. Mate distance pruning. Even if we mate at the next move our score
         // would be at best mate_in(ss->ply+1), but if alpha is already bigger because
@@ -1101,7 +1101,7 @@ split_point_start: // At split points actual search starts from here
 
     // Check for an instant draw or maximum ply reached
     if (pos.is_draw<true>() || ss->ply > MAX_PLY)
-        return VALUE_DRAW;
+        return Eval::ValueDrawContempt;
 
     // Decide whether or not to include checks, this fixes also the type of
     // TT entry depth that we are going to use. Note that in qsearch we use