]> git.sesse.net Git - stockfish/commitdiff
Add info about elo gained from some heuristics
authorMichael Chaly <Vizvezdenec@gmail.com>
Mon, 30 May 2022 10:30:59 +0000 (13:30 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 2 Jun 2022 05:43:14 +0000 (07:43 +0200)
Add info about qsearch and impact of main and continuation histories.

Based on these tests:
https://tests.stockfishchess.org/tests/view/62946ffcb0d5a7d1b780fc7e
https://tests.stockfishchess.org/tests/view/628facb71e7cd5f299669534
https://tests.stockfishchess.org/tests/view/628eade11e7cd5f299666f2e

closes https://github.com/official-stockfish/Stockfish/pull/4041

No functional change.

src/movepick.h
src/search.cpp

index 9a3c279bd2e0a8e96464a37463bd0d4f76d70d84..6b3c08c7a0d3b19abf1643c994ab395a03f14cba 100644 (file)
@@ -86,6 +86,7 @@ enum StatsType { NoCaptures, Captures };
 /// 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 www.chessprogramming.org/Butterfly_Boards
+/// (~11 elo)
 typedef Stats<int16_t, 14365, COLOR_NB, int(SQUARE_NB) * int(SQUARE_NB)> ButterflyHistory;
 
 /// CounterMoveHistory stores counter moves indexed by [piece][to] of the previous
@@ -101,6 +102,7 @@ typedef Stats<int16_t, 29952, PIECE_NB, SQUARE_NB> PieceToHistory;
 /// ContinuationHistory is the combined history of a given pair of moves, usually
 /// the current one given a previous one. The nested history table is based on
 /// PieceToHistory instead of ButterflyBoards.
+/// (~63 elo)
 typedef Stats<PieceToHistory, NOT_USED, PIECE_NB, SQUARE_NB> ContinuationHistory;
 
 
index 0a4b1a18d672e991d5a95b3e1e02304eecac6b3e..407cb7018639cbf5c02ffe1340e27faf205e8ee5 100644 (file)
@@ -1396,6 +1396,7 @@ moves_loop: // When in check, search starts here
 
   // qsearch() is the quiescence search function, which is called by the main search
   // function with zero depth, or recursively with further decreasing depth per call.
+  // (~155 elo)
   template <NodeType nodeType>
   Value qsearch(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth) {