Skip to content

Commit

Permalink
Last attempt for today. Bench: 3447817.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano80 committed Mar 1, 2019
1 parent c3d96e4 commit dce3ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/search.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1072,9 +1072,10 @@ namespace {
// Use a perceptron // Use a perceptron
float test[] = {float(abs(bestValue)), float(ss->statScore), float(captureOrPromotion), float(newDepth), float(moveCount)}; float test[] = {float(abs(bestValue)), float(ss->statScore), float(captureOrPromotion), float(newDepth), float(moveCount)};
searchLearner.setThreshold(1.0); searchLearner.setThreshold(1.0);

int pred = searchLearner.fetch(test); 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); value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d, true);


Expand Down

0 comments on commit dce3ce2

Please sign in to comment.