Skip to content

Commit 73c55e8

Browse files
FauziAkramvondele
authored andcommitted
Simplify Double Margin Formula
Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 267296 W: 69214 L: 69248 D: 128834 Ptnml(0-2): 760, 31511, 69141, 31475, 761 https://tests.stockfishchess.org/tests/view/682f5d9a6ec7634154f9b01e Passed LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 67872 W: 17460 L: 17289 D: 33123 Ptnml(0-2): 25, 7238, 19243, 7401, 29 https://tests.stockfishchess.org/tests/view/6833074b6ec7634154f9b5ae Passed VLTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 118000 W: 30337 L: 30222 D: 57441 Ptnml(0-2): 15, 11783, 35289, 11898, 15 https://tests.stockfishchess.org/tests/view/683336c56ec7634154f9ba46 closes #6097 Bench: 2312696
1 parent e3adfaf commit 73c55e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ Value Search::Worker::search(
11471147
int corrValAdj2 = std::abs(correctionValue) / 249757;
11481148
int doubleMargin = -4 + 244 * PvNode - 206 * !ttCapture - corrValAdj1
11491149
- 997 * ttMoveHistory / 131072
1150-
- (ss->ply * 2 > thisThread->rootDepth * 3) * 47;
1150+
- (ss->ply > thisThread->rootDepth) * 47;
11511151
int tripleMargin = 84 + 269 * PvNode - 253 * !ttCapture + 91 * ss->ttPv
11521152
- corrValAdj2 - (ss->ply * 2 > thisThread->rootDepth * 3) * 54;
11531153

0 commit comments

Comments
 (0)