not checking for captures in QS | bench 904927

This commit is contained in:
rektdie committed 2025-03-25 04:39:58 +01:00
1 parent 99f556e29d
commit 9e93196672
1 file changed
-2
-2
View File
@@ -138,7 +138,6 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
for (int i = 0; i < board.currentMoveIndex; i++) {
if (!board.IsLegal(board.moveList[i])) continue;
if (board.moveList[i].IsCapture()) {
Board copy = board;
copy.MakeMove(board.moveList[i], false);
int score = -Quiescence(copy, -beta, -alpha, ply + 1).score;
@@ -155,7 +154,6 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
results.bestMove = board.moveList[i];
}
}
}
results.score = bestScore;
if (searchStopped) return 0;