Skip to content

Commit

Permalink
Re-add lack of best move condition
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Oct 23, 2023
1 parent 805b421 commit 3f2d9fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ private int NegaMax(int depth, int ply, int alpha, int beta, bool isVerifyingNul

// 🔍 Principal Variation Search (PVS)
if (evaluation > alpha
&& reduction > 0) // LMR failed)
&& reduction > 0 // LMR failed
&& bestMove is not null)
{
// Optimistic search, validating that the rest of the moves are worse than bestmove.
// It should produce more cutoffs and therefore be faster.
Expand Down

0 comments on commit 3f2d9fb

Please sign in to comment.