refactor in evaluate

This commit is contained in:
rektdie committed 2025-03-20 19:56:23 +01:00
1 parent 1ce08aa0cb
commit 968d0f5377
3 files changed
+9 -3

No files matched your search

+2 -2
View File
@@ -118,7 +118,7 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
}
}
int bestScore = Evaluate(board);
int bestScore = HCE::Evaluate(board);
if (bestScore>= beta) {
return bestScore;
@@ -181,7 +181,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
if (depth <= 0) return Quiescence(board, alpha, beta, ply);
const int staticEval = Evaluate(board);
const int staticEval = HCE::Evaluate(board);
if (board.InCheck(board.sideToMove)) {
depth++;