cleaned up movegen

This commit is contained in:
rektdie committed 2024-05-13 18:04:36 +02:00
1 parent d89956a2fb
commit 119a87f227
8 files changed
+24 -637

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
#include "perft.h"
U64 HelperPerft(Board board, int depth) {
GenerateMoves(board, board.sideToMove);
GenerateMoves(board);
if (depth == 1) return board.moveList.size();
if (depth == 0) return 1ULL;
@@ -19,7 +19,7 @@ U64 HelperPerft(Board board, int depth) {
}
void Perft(Board &board, int depth) {
GenerateMoves(board, board.sideToMove);
GenerateMoves(board);
U64 totalNodes = 0;