mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
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
This commit is contained in:
parent
d8aeaab79c
commit
1d977aa79e
1 changed files with 2 additions and 3 deletions
|
@ -958,10 +958,9 @@ moves_loop: // When in check and at SpNode search starts from here
|
|||
[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
|
||||
|
|
Loading…
Add table
Reference in a new issue