1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

IID in pv also when TT move depth is too small

Try an internal iterative deepening not only when we don't
have a TT move but also if search depth is more then 4*OnePly
higher then TT move depth.

On some tests it seems that in around 20% of cases ttMove changes !

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-11-06 16:08:39 +01:00
parent dae7cacd3b
commit 0fdc75c0bd

View file

@ -1103,8 +1103,11 @@ namespace {
tte = TT.retrieve(pos.get_key());
ttMove = (tte ? tte->move() : MOVE_NONE);
// Go with internal iterative deepening if we don't have a TT move
if (UseIIDAtPVNodes && ttMove == MOVE_NONE && depth >= 5*OnePly)
// Go with internal iterative deepening if we don't have a TT move or
// if search depth is more then 4*OnePly higher then TT move depth.
if ( UseIIDAtPVNodes
&& depth >= 5*OnePly
&&(!ttMove || depth > tte->depth() + 4*OnePly))
{
search_pv(pos, ss, alpha, beta, depth-2*OnePly, ply, threadID);
ttMove = ss[ply].pv[ply];