Skip to content

Commit

Permalink
LMR Simplification: Remove countermove condition
Browse files Browse the repository at this point in the history
Removed countermove condition for decreasing reduction.

LTC:
LLR: 3.01 (-2.94,2.94) [-3.00,1.00]
Total: 32410 W: 5092 L: 4986 D: 22332

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 24450 W: 4632 L: 4517 D: 15301

Bench: 6943812

Resolves #378
  • Loading branch information
VoyagerOne authored and zamar committed Jul 15, 2015
1 parent d8aeaab commit 1d977aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/search.cpp
Expand Up @@ -958,10 +958,9 @@ namespace {
[pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO))
ss->reduction += ONE_PLY;

if ( move == countermove
|| ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO
if ( 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))
[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);

// Decrease reduction for moves that escape a capture
Expand Down

0 comments on commit 1d977aa

Please sign in to comment.