Disable NMP for breakthrough and clobber
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 20 Dec 2018 15:50:36 +0000 (16:50 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 20 Dec 2018 15:50:36 +0000 (16:50 +0100)
breakthrough
ELO: 29.25 +-30.6 (95%) LOS: 97.0%
Total: 500 W: 271 L: 229 D: 0

clobber
ELO: 64.66 +-31.0 (95%) LOS: 100.0%
Total: 500 W: 296 L: 204 D: 0

src/search.cpp

index 8108c61..02fb029 100644 (file)
@@ -758,6 +758,7 @@ namespace {
         &&  ss->staticEval >= beta - 36 * depth / ONE_PLY + 225
         && !excludedMove
         &&  pos.non_pawn_material(us)
+        && (pos.pieces() ^ pos.pieces(BREAKTHROUGH_PIECE) ^ pos.pieces(CLOBBER_PIECE))
         && (ss->ply >= thisThread->nmpMinPly || us != thisThread->nmpColor))
     {
         assert(eval - beta >= 0);