1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00: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:
Marco Costalba 2009-11-25 17:16:51 +01:00
parent 5ea8167921
commit 6ae30e7cb1

View file

@ -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);