mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Simplify malus calculation
closes https://github.com/official-stockfish/Stockfish/pull/6024 No functional change
This commit is contained in:
+1
-1
@@ -1910,7 +1910,7 @@ void update_all_stats(const Position& pos,
|
||||
PieceType captured;
|
||||
|
||||
int bonus = std::min(141 * depth - 89, 1613) + 311 * (bestMove == ttMove);
|
||||
int malus = std::min(695 * depth - 215, 2808) - 31 * (moveCount - 1);
|
||||
int malus = std::min(695 * depth - 184, 2839) - 31 * moveCount;
|
||||
|
||||
if (!pos.capture_stage(bestMove))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user