From 6ae30e7cb10cf5b673aa6998d495b1527a43478d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 25 Nov 2009 17:16:51 +0100 Subject: [PATCH] Document why we don't use TT to prune in search_pv() From a Joona' s post on talkchess. Signed-off-by: Marco Costalba --- src/search.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 5d803949..0a53225a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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); -- 2.39.2