Skip to content

Commit

Permalink
Removed extra condition (history < 0) in LMR to help sync up with mov…
Browse files Browse the repository at this point in the history
…e ordering.

LMR condition is now cmh+history<0
Instead of history<0 OR cmh+history<0

STC:
LLR: 2.96 (-2.94,2.94) [-3.00, 1.00]
Total: 26446 W: 5092 L: 4980 D: 16374

LTC:
LLR: 2.96 (-2.94,2.94) [-3.00, 1.00]
Total: 14129 W: 2340 L: 2209 D: 9580

Bench: 7815183

Resolves #331
  • Loading branch information
VoyagerOne authored and zamar committed Apr 12, 2015
1 parent fb03188 commit 20e9289
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/search.cpp
Expand Up @@ -960,7 +960,6 @@ namespace {
ss->reduction = reduction<PvNode>(improving, depth, moveCount);

if ( (!PvNode && cutNode)
|| History[pos.piece_on(to_sq(move))][to_sq(move)] < VALUE_ZERO
|| ( 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))
Expand Down

0 comments on commit 20e9289

Please sign in to comment.