Skip to content

Commit c4e2479

Browse files
FauziAkramDisservin
authored andcommitted
Introducing a depth component to the penalty.
Passed STC: LLR: 2.97 (-2.94,2.94) <0.00,2.00> Total: 31648 W: 8358 L: 8050 D: 15240 Ptnml(0-2): 78, 3596, 8182, 3876, 92 https://tests.stockfishchess.org/tests/view/680fa73d3629b02d74b165a9 Passed LTC: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 177720 W: 45524 L: 44920 D: 87276 Ptnml(0-2): 91, 19130, 49813, 19736, 90 https://tests.stockfishchess.org/tests/view/68109e2c3629b02d74b166ee closes #6060 Bench: 2251724
1 parent b5f1108 commit c4e2479

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,8 @@ void update_all_stats(const Position& pos,
18771877
// Extra penalty for a quiet early move that was not a TT move in
18781878
// previous ply when it gets refuted.
18791879
if (prevSq != SQ_NONE && ((ss - 1)->moveCount == 1 + (ss - 1)->ttHit) && !pos.captured_piece())
1880-
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, -malus * 980 / 1024);
1880+
update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq,
1881+
-malus * (512 + depth * 16) / 1024);
18811882

18821883
// Decrease stats for all non-best capture moves
18831884
for (Move move : capturesSearched)

0 commit comments

Comments
 (0)