"-alpha - 1" vs "-beta" as alpha value in LMR

Discussion of chess software programming and technical issues.

Moderator: Ras

KhepriChess
Posts: 93
Joined: Sun Aug 08, 2021 9:14 pm
Full name: Kurt Peters

"-alpha - 1" vs "-beta" as alpha value in LMR

Post by KhepriChess »

What I mean:

Code: Select all

negamax(depth, -alpha - 1, -alpha)
versus

Code: Select all

negamax(depth, -beta, -alpha)
There seems to be little consistency in engines between which is used when. I've looked at a number of engines, and some the use of one over the other seems to vary quite a bit. Some will use one for all reductions, others will use it only in more limited cases. Or use one in all cases if a reduction fails or only in a pv-node (or non-pv node) fails.

Is there an actually correct use of one over the other?
Puffin: Github
KhepriChess: Github
User avatar
Bo Persson
Posts: 257
Joined: Sat Mar 11, 2006 8:31 am
Location: Malmö, Sweden
Full name: Bo Persson

Re: "-alpha - 1" vs "-beta" as alpha value in LMR

Post by Bo Persson »

If you search with a minimum window, beta will be alpha + 1. So no difference.