Skip to content

Commit e2612f9

Browse files
Viren6Disservin
authored andcommitted
Introduce Correction History Quad Extensions
Also modifies the double and triple extension margins with the correction history adjustment. STC Elo Estimate: Elo: -4.40 ± 1.4 (95%) LOS: 0.0% Total: 60000 W: 15230 L: 15990 D: 28780 Ptnml(0-2): 264, 7495, 15168, 6883, 190 nElo: -8.48 ± 2.8 (95%) PairsRatio: 0.91 https://tests.stockfishchess.org/tests/view/6783a3786ddf09c0b4b703a1 Passed 1st VVLTC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 35736 W: 9354 L: 9088 D: 17294 Ptnml(0-2): 4, 3191, 11212, 3457, 4 https://tests.stockfishchess.org/tests/view/6783a3336ddf09c0b4b7039b Passed 2nd VVLTC: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 36394 W: 9515 L: 9225 D: 17654 Ptnml(0-2): 1, 3271, 11364, 3559, 2 https://tests.stockfishchess.org/tests/view/678395e26ddf09c0b4b70345 closes #5767 Bench: 1567166
1 parent 93edf7a commit e2612f9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/search.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,11 +1070,16 @@ Value Search::Worker::search(
10701070

10711071
if (value < singularBeta)
10721072
{
1073-
int doubleMargin = 259 * PvNode - 194 * !ttCapture;
1074-
int tripleMargin = 90 + 266 * PvNode - 272 * !ttCapture + 107 * ss->ttPv;
1073+
int corrValAdj = std::abs(correctionValue) / 262144;
1074+
int doubleMargin = 249 * PvNode - 194 * !ttCapture - corrValAdj;
1075+
int tripleMargin =
1076+
94 + 287 * PvNode - 249 * !ttCapture + 99 * ss->ttPv - corrValAdj;
1077+
int quadMargin =
1078+
394 + 287 * PvNode - 249 * !ttCapture + 99 * ss->ttPv - corrValAdj;
10751079

10761080
extension = 1 + (value < singularBeta - doubleMargin)
1077-
+ (value < singularBeta - tripleMargin);
1081+
+ (value < singularBeta - tripleMargin)
1082+
+ (value < singularBeta - quadMargin);
10781083

10791084
depth += ((!PvNode) && (depth < 15));
10801085
}

0 commit comments

Comments
 (0)