Skip to content

LMR+PVS #229

@ChizhovVadim

Description

@ChizhovVadim

I think, if LMR>0, research should be if score > alpha without score < beta. Or I do not understand how it works :-).

score := -e.alphaBeta(depthLeft-1-LMR, searchHeight+1, -alpha-1, -alpha)
if score > alpha && (LMR>0||score < beta) {
...
}

zahak/search/search.go

Lines 745 to 751 in 72ff806

score := -e.alphaBeta(depthLeft-1-LMR, searchHeight+1, -alpha-1, -alpha)
e.pred.Pop()
if score > alpha && score < beta {
// research with window [alpha;beta]
e.pred.Push(position.Hash())
e.innerLines[searchHeight+1].Recycle()
score = -e.alphaBeta(depthLeft-1, searchHeight+1, -beta, -alpha)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions