small refactor in perft printing | bench 4118297
This commit is contained in:
1 parent
325db852c4
commit
4b1ce8f8ea
1 file changed
+1
-14
+1
-14
@@ -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';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user