Pseudo legal #28

Merged
rektdie merged 14 commits from pseudoLegal into main 2025-03-25 14:16:56 +01:00
Showing only changes of commit 9e93196672 - Show all commits
-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++) { for (int i = 0; i < board.currentMoveIndex; i++) {
if (!board.IsLegal(board.moveList[i])) continue; if (!board.IsLegal(board.moveList[i])) continue;
if (board.moveList[i].IsCapture()) {
Board copy = board; Board copy = board;
copy.MakeMove(board.moveList[i], false); copy.MakeMove(board.moveList[i], false);
int score = -Quiescence(copy, -beta, -alpha, ply + 1).score; 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.bestMove = board.moveList[i];
} }
} }
}
results.score = bestScore; results.score = bestScore;
if (searchStopped) return 0; if (searchStopped) return 0;