more stages in movepicker | bench 1468577 | bench 1468577

This commit is contained in:
rektdie committed 2026-09-19 15:59:05 +02:00
1 parent dbd56e0c21
commit f23a59730b
5 files changed
+456 -340

No files matched your search

+4 -4
View File
@@ -270,14 +270,14 @@ void GenKingMoves(Board &board) {
}
template <MovegenMode mode>
void GenerateMoves(Board &board, bool clear) {
void GenerateMoves(Board &board, bool clear, bool recalcThreats) {
if (clear) {
board.ResetMoves();
board.pieceThreats = {};
board.colorThreats = {};
}
GenThreatMaps(board);
if (recalcThreats) {
GenThreatMaps(board);
}
GenPawnMoves<mode>(board);
GenKnightMoves<mode>(board);