From c4c2e08f0d71c8e8f0bdfcb988a42b33243fd2ca Mon Sep 17 00:00:00 2001 From: Stefan Geschwentner Date: Wed, 25 Jul 2018 18:01:47 +0200 Subject: [PATCH] Tweak stat bonus Increase stat bonus by 1/32 and adjust the divisor of main and capture history tables to 10692. STC: LLR: 2.96 (-2.94,2.94) [0.00,4.00] Total: 28437 W: 6444 L: 6166 D: 15827 http://tests.stockfishchess.org/tests/view/5b579b4d0ebc5902bdb87139 LTC: LLR: 2.96 (-2.94,2.94) [0.00,4.00] Total: 111204 W: 19160 L: 18644 D: 73400 http://tests.stockfishchess.org/tests/view/5b57a7c60ebc5902bdb872d3 Closes https://github.com/official-stockfish/Stockfish/pull/1698 Bench: 4778882 --- src/movepick.h | 4 ++-- src/search.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/movepick.h b/src/movepick.h index 503bfae1..141454a8 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -85,14 +85,14 @@ enum StatsParams { NOT_USED = 0 }; /// unsuccessful during the current search, and is used for reduction and move /// ordering decisions. It uses 2 tables (one for each color) indexed by /// the move's from and to squares, see chessprogramming.wikispaces.com/Butterfly+Boards -typedef Stats ButterflyHistory; +typedef Stats ButterflyHistory; /// CounterMoveHistory stores counter moves indexed by [piece][to] of the previous /// move, see chessprogramming.wikispaces.com/Countermove+Heuristic typedef Stats CounterMoveHistory; /// CapturePieceToHistory is addressed by a move's [piece][to][captured piece type] -typedef Stats CapturePieceToHistory; +typedef Stats CapturePieceToHistory; /// PieceToHistory is like ButterflyHistory but is addressed by a move's [piece][to] typedef Stats PieceToHistory; diff --git a/src/search.cpp b/src/search.cpp index 325278fb..aa27ec2b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -82,7 +82,7 @@ namespace { // History and stats update bonus, based on depth int stat_bonus(Depth depth) { int d = depth / ONE_PLY; - return d > 17 ? 0 : 32 * d * d + 64 * d - 64; + return d > 17 ? 0 : 33 * d * d + 66 * d - 66; } // Skill structure is used to implement strength limit -- 2.39.2