fix in LMR | bench 5251927
This commit is contained in:
1 parent
26ac46d8ce
commit
40d67d1017
1 file changed
+4
@@ -342,7 +342,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
||||
// First move (suspected PV node)
|
||||
if (!moveSeen) {
|
||||
// Full search
|
||||
if constexpr (isPV) {
|
||||
score = -PVS<isPV, mode>(copy, newDepth, -beta, -alpha, ply + 1, ctx, false).score;
|
||||
} else {
|
||||
score = -PVS<isPV, mode>(copy, newDepth, -beta, -alpha, ply + 1, ctx, !cutnode).score;
|
||||
}
|
||||
} else if (reductions) {
|
||||
// Null-window search with reductions
|
||||
score = -PVS<false, mode>(copy, newDepth - reductions, -alpha-1, -alpha, ply + 1, ctx, true).score;
|
||||
|
||||
Reference in new issue
Block a user