cleanup | bench 1812688

This commit is contained in:
rektdie committed 2026-02-19 15:12:17 +01:00
1 parent a9b51e384f
commit 320c43cdd3
4 files changed
+17 -16

No files matched your search

+2 -2
View File
@@ -29,9 +29,9 @@ void Perft(Board &board, int depth) {
Stopwatch sw;
for (int i = 0; i < board.currentMoveIndex; i++) {
if (!board.IsLegal(board.moveList[i])) continue;
Board copy = board;
bool isLegal = copy.MakeMove(board.moveList[i]);
if (!isLegal) continue;
copy.MakeMove(board.moveList[i]);
U64 nodeCount = HelperPerft(copy, depth - 1);
totalNodes += nodeCount;
board.moveList[i].PrintMove();