more stages in movepicker | bench 1468577 | bench 1468577
This commit is contained in:
1 parent
dbd56e0c21
commit
f23a59730b
5 files changed
+456
-340
No files matched your search
+4
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user