mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Document why we don't use TT to prune in search_pv()
From a Joona' s post on talkchess. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1121,7 +1121,14 @@ namespace {
|
||||
return alpha;
|
||||
|
||||
// Transposition table lookup. At PV nodes, we don't use the TT for
|
||||
// pruning, but only for move ordering.
|
||||
// pruning, but only for move ordering. This is to avoid problems in
|
||||
// the following areas:
|
||||
//
|
||||
// * Repetition draw detection
|
||||
// * Fifty move rule detection
|
||||
// * Searching for a mate
|
||||
// * Printing of full PV line
|
||||
//
|
||||
tte = TT.retrieve(pos.get_key());
|
||||
ttMove = (tte ? tte->move() : MOVE_NONE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user