mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
e5c3effdb1
Hopefully this patch makes the code more: * Self-documenting: Null search is always a zero window search, because it is testing for a fail high. It should never be done on a full window! The current code only works because we don't do it at PV nodes, and therefore (alpha, beta) = (beta-1, beta): that's the kind of "clever" trick we should avoid. * Idiot-proof: If we want to enable null search at PV nodes, all we need to do now is comment out the !PvNode condition. It's that simple! In theory, null search should not be done at PV nodes, because PV nodes should never fail high. But in practice, they DO fail high, because of aspiration windows, and search inconsistencies, for example. So it makes sense to keep that flexibility in the code. No functional change.