From b7063ef65b4a5720e1d594beb50aaaca6fb11d93 Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sun, 26 Apr 2015 20:12:25 +0100 Subject: [PATCH] Change extra ply LMR condition to: cmh <= 0 && hist < 0 Extra ply LMR condition is now cmh <= 0 && h < 0 Instead of cmh + h < 0 STC: LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 55210 W: 10812 L: 10557 D: 33841 LTC: LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 13212 W: 2239 L: 2045 D: 8928 Bench: 8420865 Resolves #339 --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 2149df2b..636b1db4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -960,9 +960,8 @@ moves_loop: // When in check and at SpNode search starts from here ss->reduction = reduction(improving, depth, moveCount); if ( (!PvNode && cutNode) - || ( History[pos.piece_on(to_sq(move))][to_sq(move)] - + CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq] - [pos.piece_on(to_sq(move))][to_sq(move)] < VALUE_ZERO)) + || ( History[pos.piece_on(to_sq(move))][to_sq(move)] < VALUE_ZERO + && CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq][pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO)) ss->reduction += ONE_PLY; if (move == countermove) -- 2.39.2