Skip to content

Commit

Permalink
Bench 3403257
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Apr 15, 2019
1 parent cdca9cf commit 3b75b7a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/search.cpp
Expand Up @@ -610,14 +610,12 @@ 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
&& ttHit
&& tte->depth() > depth
&& pos.count<PAWN>() > 0)
{
//sync_cout << "Shuffling : " << pos.fen() << sync_endl;
return VALUE_DRAW;
}
}

// At non-PV nodes we check for an early TT cutoff
if ( !PvNode
Expand Down Expand Up @@ -939,13 +937,13 @@ namespace {
// Castling extension
else if (type_of(move) == CASTLING)
extension = ONE_PLY;
// Shuffle extension
else if(pos.rule50_count() > 14
&& ss->ply > 14
&& depth < 3 * ONE_PLY
&& PvNode
&& ss->ply < 3 * thisThread->rootDepth / ONE_PLY) // To avoid infinite loops

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

// Passed pawn extension
Expand Down

0 comments on commit 3b75b7a

Please sign in to comment.