mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 20:57:10 +00:00
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 https://github.com/official-stockfish/Stockfish/pull/6606 bench 2739355
This commit is contained in:
committed by
Joost VandeVondele
parent
89b4f457e0
commit
91c6ea82aa
+4
-6
@@ -139,8 +139,7 @@ void update_all_stats(const Position& pos,
|
||||
SearchedList& quietsSearched,
|
||||
SearchedList& capturesSearched,
|
||||
Depth depth,
|
||||
Move TTMove,
|
||||
int moveCount);
|
||||
Move ttMove);
|
||||
|
||||
bool is_shuffling(Move move, Stack* const ss, const Position& pos) {
|
||||
if (pos.capture_stage(move) || pos.rule50_count() < 10)
|
||||
@@ -1414,7 +1413,7 @@ moves_loop: // When in check, search starts here
|
||||
else if (bestMove)
|
||||
{
|
||||
update_all_stats(pos, ss, *this, bestMove, prevSq, quietsSearched, capturesSearched, depth,
|
||||
ttData.move, moveCount);
|
||||
ttData.move);
|
||||
if (!PvNode)
|
||||
ttMoveHistory << (bestMove == ttData.move ? 809 : -865);
|
||||
}
|
||||
@@ -1822,8 +1821,7 @@ void update_all_stats(const Position& pos,
|
||||
SearchedList& quietsSearched,
|
||||
SearchedList& capturesSearched,
|
||||
Depth depth,
|
||||
Move ttMove,
|
||||
int moveCount) {
|
||||
Move ttMove) {
|
||||
|
||||
CapturePieceToHistory& captureHistory = workerThread.captureHistory;
|
||||
Piece movedPiece = pos.moved_piece(bestMove);
|
||||
@@ -1831,7 +1829,7 @@ void update_all_stats(const Position& pos,
|
||||
|
||||
int bonus =
|
||||
std::min(116 * depth - 81, 1515) + 347 * (bestMove == ttMove) + (ss - 1)->statScore / 32;
|
||||
int malus = std::min(848 * depth - 207, 2446) - 17 * moveCount;
|
||||
int malus = std::min(800 * depth - 207, 2200);
|
||||
|
||||
if (!pos.capture_stage(bestMove))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user