Skip to content

Commit 0e4ecc3

Browse files
committed
Improving tweak
Elo | 0.71 +- 0.97 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 1.40 (-2.94, 2.94) [0.00, 2.00] Games | N: 234956 W: 55966 L: 55486 D: 123504 Penta | [904, 28143, 58930, 28571, 930] Bench 8157335
1 parent c642004 commit 0e4ecc3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/backend/Search.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,16 +1497,12 @@ ScoreType Search::NegaMax(ThreadData& thread, NodeInfo* node, SearchContext& ctx
14971497
// check how much static evaluation improved between current position and position in previous turn
14981498
// if we were in check in previous turn, use position prior to it
14991499
bool isImproving = false;
1500-
if (!node->isInCheck)
1500+
if (!node->isInCheck && !node->isNullMove)
15011501
{
1502-
int32_t evalImprovement = 0;
1503-
15041502
if (node->ply > 1 && (node - 2)->staticEval != InvalidValue)
1505-
evalImprovement = node->staticEval - (node - 2)->staticEval;
1503+
isImproving = node->staticEval > (node - 2)->staticEval;
15061504
else if (node->ply > 3 && (node - 4)->staticEval != InvalidValue)
1507-
evalImprovement = node->staticEval - (node - 4)->staticEval;
1508-
1509-
isImproving = evalImprovement >= 0;
1505+
isImproving = node->staticEval > (node - 4)->staticEval;
15101506
}
15111507

15121508
if constexpr (!isPvNode)

0 commit comments

Comments
 (0)