not checking for captures in QS | bench 904927
This commit is contained in:
1 parent
99f556e29d
commit
9e93196672
1 file changed
-2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user