Skip to content

Commit b88374b

Browse files
VoyagerOnesnicolet
authored andcommitted
Reset negative statScore on fail high
STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 9073 W: 1937 L: 1766 D: 5370 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 53530 W: 8139 L: 7823 D: 37568 Bench: 5170165
1 parent 759d129 commit b88374b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/search.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ namespace {
10851085
else
10861086
{
10871087
assert(value >= beta); // Fail high
1088+
ss->statScore = std::max(ss->statScore, 0);
10881089
break;
10891090
}
10901091
}

0 commit comments

Comments
 (0)