Skip to content

Commit 7d2a79f

Browse files
VoyagerOnemcostalba
authored andcommitted
Stat Formula Tweak
bonus = d * d + 2 * d - 2 STC: LLR: 2.94 (-2.94,2.94) [0.00,4.00] Total: 99444 W: 18274 L: 17778 D: 63392 LTC: LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 89757 W: 12285 L: 11896 D: 65576 bench: 8276130
1 parent 7c5d724 commit 7d2a79f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/search.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ namespace {
11591159
&& !pos.captured_piece_type()
11601160
&& is_ok((ss-1)->currentMove))
11611161
{
1162-
Value bonus = Value((depth / ONE_PLY) * (depth / ONE_PLY) + depth / ONE_PLY - 1);
1162+
Value bonus = Value((depth / ONE_PLY) * (depth / ONE_PLY) + 2 * depth / ONE_PLY - 2);
11631163
if ((ss-2)->counterMoves)
11641164
(ss-2)->counterMoves->update(pos.piece_on(prevSq), prevSq, bonus);
11651165

@@ -1439,7 +1439,7 @@ namespace {
14391439
ss->killers[0] = move;
14401440
}
14411441

1442-
Value bonus = Value((depth / ONE_PLY) * (depth / ONE_PLY) + depth / ONE_PLY - 1);
1442+
Value bonus = Value((depth / ONE_PLY) * (depth / ONE_PLY) + 2 * depth / ONE_PLY - 2);
14431443

14441444
Square prevSq = to_sq((ss-1)->currentMove);
14451445
CounterMoveStats* cmh = (ss-1)->counterMoves;
@@ -1480,13 +1480,13 @@ namespace {
14801480
if ((ss-1)->moveCount == 1 && !pos.captured_piece_type())
14811481
{
14821482
if ((ss-2)->counterMoves)
1483-
(ss-2)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY);
1483+
(ss-2)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY - 1);
14841484

14851485
if ((ss-3)->counterMoves)
1486-
(ss-3)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY);
1486+
(ss-3)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY - 1);
14871487

14881488
if ((ss-5)->counterMoves)
1489-
(ss-5)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY);
1489+
(ss-5)->counterMoves->update(pos.piece_on(prevSq), prevSq, -bonus - 2 * (depth + 1) / ONE_PLY - 1);
14901490
}
14911491
}
14921492

0 commit comments

Comments
 (0)