Skip to content

Commit c4c2e08

Browse files
locutus2snicolet
authored andcommitted
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 #1698 Bench: 4778882
1 parent 6e36860 commit c4c2e08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/movepick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ enum StatsParams { NOT_USED = 0 };
8585
/// unsuccessful during the current search, and is used for reduction and move
8686
/// ordering decisions. It uses 2 tables (one for each color) indexed by
8787
/// the move's from and to squares, see chessprogramming.wikispaces.com/Butterfly+Boards
88-
typedef Stats<int16_t, 10368, COLOR_NB, int(SQUARE_NB) * int(SQUARE_NB)> ButterflyHistory;
88+
typedef Stats<int16_t, 10692, COLOR_NB, int(SQUARE_NB) * int(SQUARE_NB)> ButterflyHistory;
8989

9090
/// CounterMoveHistory stores counter moves indexed by [piece][to] of the previous
9191
/// move, see chessprogramming.wikispaces.com/Countermove+Heuristic
9292
typedef Stats<Move, NOT_USED, PIECE_NB, SQUARE_NB> CounterMoveHistory;
9393

9494
/// CapturePieceToHistory is addressed by a move's [piece][to][captured piece type]
95-
typedef Stats<int16_t, 10368, PIECE_NB, SQUARE_NB, PIECE_TYPE_NB> CapturePieceToHistory;
95+
typedef Stats<int16_t, 10692, PIECE_NB, SQUARE_NB, PIECE_TYPE_NB> CapturePieceToHistory;
9696

9797
/// PieceToHistory is like ButterflyHistory but is addressed by a move's [piece][to]
9898
typedef Stats<int16_t, 29952, PIECE_NB, SQUARE_NB> PieceToHistory;

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace {
8282
// History and stats update bonus, based on depth
8383
int stat_bonus(Depth depth) {
8484
int d = depth / ONE_PLY;
85-
return d > 17 ? 0 : 32 * d * d + 64 * d - 64;
85+
return d > 17 ? 0 : 33 * d * d + 66 * d - 66;
8686
}
8787

8888
// Skill structure is used to implement strength limit

0 commit comments

Comments
 (0)