Skip to content

Commit

Permalink
Update Engine.scratch
Browse files Browse the repository at this point in the history
- Fixed refactoring bug (checkmate max eval constant)
  • Loading branch information
ArnoHue committed Mar 24, 2024
1 parent b799c20 commit 70b9730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/Engine.scratch
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ Define AlphaBetaMinMaxImpl(string Depth)(string MinDepth)(string MaxDepth)(bool
}
}
Event.Broadcast("showbestmove");
If (Score > (AbsMinCheckmateEval - ((MaxDepth - 1) * 1000)))
If (Score > (AbsMaxCheckmateEval - ((MaxDepth - 1) * 1000)))
{
IsMinMaxTimeout = 1;
}
Expand Down

0 comments on commit 70b9730

Please sign in to comment.