Skip to content

Commit

Permalink
no lmr for thread #3
Browse files Browse the repository at this point in the history
  • Loading branch information
protonspring committed Jul 23, 2019
1 parent 7090d25 commit 017bd37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,13 @@ namespace {

// Step 16. Reduced depth search (LMR). If the move fails high it will be
// re-searched at full depth.
size_t idx = pos.this_thread()->pvIdx;
//std::cout << "<idx: " << idx << std::endl;
//std::cout << "<threads: " << Options["Threads"] << std::endl;
//if ((Options["Threads"] >= 4) && (idx != 0))
if (idx != 3)
{

if ( depth >= 3 * ONE_PLY
&& moveCount > 1 + 3 * rootNode
&& ( !captureOrPromotion
Expand Down Expand Up @@ -1134,6 +1141,8 @@ namespace {
else
doFullDepthSearch = !PvNode || moveCount > 1, doLMR = false;

}

// Step 17. Full depth search when LMR is skipped or fails high
if (doFullDepthSearch)
{
Expand Down

0 comments on commit 017bd37

Please sign in to comment.