As far as I can see from your previous posts you are using fail-hard alpha-beta. So I am not sure whether your re-search condition "val > alpha && val < beta" is correct, IMO it should be "val > alpha" only. But it is possible that this is only redundant code since "val > alpha" after null-window search should mean "val == alpha+1".Richard Allbert wrote:Also, if I add PVSThen the node count increases, rather than an expected decrease.Code: Select all
val = -alphabeta(-alpha-1, -alpha, depth-1+ext, true, check); if ((val > alpha) && (val < beta)) { stats->pvsresearch++; val = -alphabeta( -beta, -alpha, depth-1+ext, true, check); }
[...]
So the problem could well be the PVS implementation... sorry.
Sven