Skip to content

Commit 91c6ea8

Browse files
daniel-monroevondele
authored andcommitted
Simplify malus formula
Passed non-regression STC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 51936 W: 13490 L: 13283 D: 25163 Ptnml(0-2): 161, 6128, 13184, 6333, 162 https://tests.stockfishchess.org/tests/view/698120e06362aee5c8a55412 Passed non-regression LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 233772 W: 59502 L: 59499 D: 114771 Ptnml(0-2): 144, 25753, 65086, 25762, 141 https://tests.stockfishchess.org/tests/view/69827426889c3a4c31c8db52 closes official-stockfish#6606 bench 2739355
1 parent 89b4f45 commit 91c6ea8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/search.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ void update_all_stats(const Position& pos,
139139
SearchedList& quietsSearched,
140140
SearchedList& capturesSearched,
141141
Depth depth,
142-
Move TTMove,
143-
int moveCount);
142+
Move ttMove);
144143

145144
bool is_shuffling(Move move, Stack* const ss, const Position& pos) {
146145
if (pos.capture_stage(move) || pos.rule50_count() < 10)
@@ -1414,7 +1413,7 @@ Value Search::Worker::search(
14141413
else if (bestMove)
14151414
{
14161415
update_all_stats(pos, ss, *this, bestMove, prevSq, quietsSearched, capturesSearched, depth,
1417-
ttData.move, moveCount);
1416+
ttData.move);
14181417
if (!PvNode)
14191418
ttMoveHistory << (bestMove == ttData.move ? 809 : -865);
14201419
}
@@ -1822,16 +1821,15 @@ void update_all_stats(const Position& pos,
18221821
SearchedList& quietsSearched,
18231822
SearchedList& capturesSearched,
18241823
Depth depth,
1825-
Move ttMove,
1826-
int moveCount) {
1824+
Move ttMove) {
18271825

18281826
CapturePieceToHistory& captureHistory = workerThread.captureHistory;
18291827
Piece movedPiece = pos.moved_piece(bestMove);
18301828
PieceType capturedPiece;
18311829

18321830
int bonus =
18331831
std::min(116 * depth - 81, 1515) + 347 * (bestMove == ttMove) + (ss - 1)->statScore / 32;
1834-
int malus = std::min(848 * depth - 207, 2446) - 17 * moveCount;
1832+
int malus = std::min(800 * depth - 207, 2200);
18351833

18361834
if (!pos.capture_stage(bestMove))
18371835
{

0 commit comments

Comments
 (0)