diff --git a/source/perft.cpp b/source/perft.cpp index fab6939..b9ca8da 100644 --- a/source/perft.cpp +++ b/source/perft.cpp @@ -30,20 +30,7 @@ void Perft(Board &board, int depth) { U64 nodeCount = HelperPerft(board, depth - 1); board = copy; totalNodes += nodeCount; - std::cout << squareCoords[board.moveList[i].MoveFrom()] - << squareCoords[board.moveList[i].MoveTo()]; - - // Promotions - int flags = board.moveList[i].GetFlags(); - if (flags == knightPromotion || flags == knightPromoCapture) { - std::cout << 'n'; - } else if (flags == bishopPromotion || flags == bishopPromoCapture) { - std::cout << 'b'; - } else if (flags == rookPromotion || flags == rookPromoCapture) { - std::cout << 'r'; - } else if (flags == queenPromotion || flags == queenPromoCapture) { - std::cout << 'q'; - } + board.moveList[i].PrintMove(); std::cout << ": " << nodeCount << '\n'; }