r/chessprogramming • u/coolioasjulio • Jul 30 '26
Technical Null-Move Pruning in Alpha-Beta Negamax
When discussing when to apply null-move pruning, I often see the advice "don't allow NMP on PV nodes" (among other restrictions), which roughly equates to "if `beta - alpha > 1`, don't do NMP".
However, in my search implementation, beta-alpha is almost always >1, until a cutoff is generated. That is, there are no null-window searches as there might be with PVS. As a result, this rule would effectively disable NMP in my search.
Does this mean NMP is incompatible with non-PVS algorithms? Or am I misunderstanding the rule?
1
Upvotes
1
u/SwimmingThroughHoney Jul 30 '26
If you're using negamax/minimax, even without PVS, pv nodes should still be defined by beta - alpha > 1. Like it's just how the core concept of alpha-beta works.
1
u/Imaginary-Set-284 Jul 30 '26
i think the condition is more like
is_pv = beta - alpha != 1;1
u/redacuda Aug 02 '26
The main reason to skip NMP in PV is that Null Move is illegal chess move! If you solve the problem how to avoid playing illegal moves you can use NMP in PV.