Skip to content
Permalink
Browse files

Last attempt for today. Bench: 3447817.

  • Loading branch information...
Stefano80 committed Mar 1, 2019
1 parent c3d96e4 commit dce3ce2b2c7d7c127a4baecd1855d2a1a0cc6d8f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/search.cpp
@@ -1072,9 +1072,10 @@ namespace {
// Use a perceptron
float test[] = {float(abs(bestValue)), float(ss->statScore), float(captureOrPromotion), float(newDepth), float(moveCount)};
searchLearner.setThreshold(1.0);

int pred = searchLearner.fetch(test);

Depth d = std::max(newDepth - std::max(r + pred * ONE_PLY, DEPTH_ZERO), ONE_PLY);
Depth d = std::max(newDepth - std::max(r + pred * ONE_PLY - ONE_PLY, DEPTH_ZERO), ONE_PLY);

value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d, true);

0 comments on commit dce3ce2

Please sign in to comment.
You can’t perform that action at this time.