Skip to content

Commit

Permalink
🔍 Assign bestScore to MinEval instead of to `NegativeCheckmateDet…
Browse files Browse the repository at this point in the history
…ectionLimitt` (#1041)
  • Loading branch information
eduherminio authored Sep 21, 2024
1 parent 3c7b057 commit 1fbf15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private int NegaMax(int depth, int ply, int alpha, int beta, bool parentWasNullM
}

var nodeType = NodeType.Alpha;
int bestScore = EvaluationConstants.NegativeCheckmateDetectionLimit;
int bestScore = EvaluationConstants.MinEval;
Move? bestMove = null;
bool isAnyMoveValid = false;

Expand Down

0 comments on commit 1fbf15d

Please sign in to comment.