expanded QS to noisy moves instead of only captures | bench 902872
This commit is contained in:
1 parent
44c1b6858d
commit
865fb13b90
1 file changed
-2
@@ -137,7 +137,6 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
|
|||||||
SearchResults results;
|
SearchResults results;
|
||||||
|
|
||||||
for (int i = 0; i < board.currentMoveIndex; i++) {
|
for (int i = 0; i < board.currentMoveIndex; i++) {
|
||||||
if (board.moveList[i].IsCapture()) {
|
|
||||||
Board copy = board;
|
Board copy = board;
|
||||||
int isLegal = copy.MakeMove(board.moveList[i]);
|
int isLegal = copy.MakeMove(board.moveList[i]);
|
||||||
if (!isLegal) continue;
|
if (!isLegal) continue;
|
||||||
@@ -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