Consider the following typical framework...
- Code: Select all
v = -alphabeta( -beta, -alpha...)
// eventually code gets here...
if ( v >= beta
// do cutoff stuff
saveHash(..., beta, ...); // in some examples, v is saved
return beta; // in some examples, v is returned
// code continues
I've seen example code where instead of saving and returning beta, 'v' is saved and returned.
It must make a difference, me thinks.
Does it have to do with hard vs soft fail?
If so, which is correct for each case?