Skip to content

Commit

Permalink
extension at ply 12, limit 2 * rootDepth, only last leafs
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Apr 13, 2019
1 parent 366eec6 commit 2e4a7d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search.cpp
Expand Up @@ -610,7 +610,7 @@ namespace {
// If position has been searched at higher depths and we are shuffling, return value_draw
if (pos.rule50_count() > 36 - 6 * (pos.count<ALL_PIECES>() > 14)
&& ss->ply > 36 - 6 * (pos.count<ALL_PIECES>() > 14)
//&& depth < 3 * ONE_PLY
&& depth < 3 * ONE_PLY
&& ttHit
&& tte->depth() > depth
&& pos.count<PAWN>() > 0)
Expand Down Expand Up @@ -941,11 +941,11 @@ namespace {
extension = ONE_PLY;

// Shuffle extension
else if(pos.rule50_count() > 14
&& ss->ply > 14
else if(pos.rule50_count() > 12
&& ss->ply > 12
&& depth < 3 * ONE_PLY
&& PvNode
&& ss->ply < 3 * thisThread->rootDepth / ONE_PLY) // To avoid infinite loops
&& ss->ply < 2 * thisThread->rootDepth / ONE_PLY) // To avoid infinite loops
extension = ONE_PLY;

// Passed pawn extension
Expand Down

0 comments on commit 2e4a7d9

Please sign in to comment.