Skip to content

Commit 1d977aa

Browse files
VoyagerOnezamar
authored andcommitted
LMR Simplification: Remove countermove condition
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
1 parent d8aeaab commit 1d977aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/search.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,9 @@ namespace {
958958
[pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO))
959959
ss->reduction += ONE_PLY;
960960

961-
if ( move == countermove
962-
|| ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO
961+
if ( History[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO
963962
&& CounterMovesHistory[pos.piece_on(prevMoveSq)][prevMoveSq]
964-
[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO))
963+
[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)
965964
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
966965

967966
// Decrease reduction for moves that escape a capture

0 commit comments

Comments
 (0)