Skip to content

Commit e13e4cf

Browse files
xu-shawnvondele
authored andcommitted
Simplify NMP Condition
Remove eval >= ss->staticEval condition for Null Move Pruning. Passed non-regression STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 44000 W: 11420 L: 11202 D: 21378 Ptnml(0-2): 174, 5243, 10978, 5401, 204 https://tests.stockfishchess.org/tests/live_elo/6603ee490ec64f0526c57984 Passed non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 82956 W: 20978 L: 20818 D: 41160 Ptnml(0-2): 54, 9353, 22499, 9523, 49 https://tests.stockfishchess.org/tests/live_elo/660464b50ec64f0526c5804d closes #5142 Bench 1759189
1 parent 0ef5d05 commit e13e4cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ sf-x
204204
Shahin M. Shahin (peregrine)
205205
Shane Booth (shane31)
206206
Shawn Varghese (xXH4CKST3RXx)
207+
Shawn Xu (xu-shawn)
207208
Siad Daboul (Topologist)
208209
Stefan Geschwentner (locutus2)
209210
Stefano Cardanobile (Stefano80)

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ Value Search::Worker::search(
774774

775775
// Step 9. Null move search with verification search (~35 Elo)
776776
if (!PvNode && (ss - 1)->currentMove != Move::null() && (ss - 1)->statScore < 16878
777-
&& eval >= beta && eval >= ss->staticEval && ss->staticEval >= beta - 20 * depth + 314
778-
&& !excludedMove && pos.non_pawn_material(us) && ss->ply >= thisThread->nmpMinPly
777+
&& eval >= beta && ss->staticEval >= beta - 20 * depth + 314 && !excludedMove
778+
&& pos.non_pawn_material(us) && ss->ply >= thisThread->nmpMinPly
779779
&& beta > VALUE_TB_LOSS_IN_MAX_PLY)
780780
{
781781
assert(eval - beta >= 0);

0 commit comments

Comments
 (0)