Merge official-stockfish/master
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 13 Apr 2019 08:03:23 +0000 (10:03 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 13 Apr 2019 08:03:23 +0000 (10:03 +0200)
bench: 3309231

1  2 
src/search.cpp

diff --cc src/search.cpp
@@@ -951,15 -924,7 +942,11 @@@ moves_loop: // When in check, search st
        else if (    givesCheck
                 && (pos.blockers_for_king(~us) & from_sq(move) || pos.see_ge(move)))
            extension = ONE_PLY;
 +      else if (    pos.must_capture() // Capture extension (all moves are captures)
 +               &&  pos.capture(move)
 +               &&  MoveList<CAPTURES>(pos).size() == 1)
 +          extension = ONE_PLY;
  
-       // Shuffle extension
-       else if(pos.rule50_count() > 14 && ss->ply > 14 && depth < 3 * ONE_PLY && PvNode)
-           extension = ONE_PLY;
        // Castling extension
        else if (type_of(move) == CASTLING)
            extension = ONE_PLY;