tiny refactor in printing | bench 4118297

This commit is contained in:
rektdie committed 2025-03-10 14:50:24 +01:00
1 parent 537139f5d0
commit 9622a28db5
1 file changed
+2 -14
+2 -14
View File
@@ -325,20 +325,8 @@ void SearchPosition(Board &board, SearchParams params) {
U64 elapsed = std::chrono::duration_cast< U64 elapsed = std::chrono::duration_cast<
std::chrono::duration<U64>>(currTime - timeStart).count(); std::chrono::duration<U64>>(currTime - timeStart).count();
std::cout << "bestmove " << squareCoords[results.bestMove.MoveFrom()] std::cout << "bestmove ";
<< squareCoords[results.bestMove.MoveTo()]; results.bestMove.PrintMove();
int flags = results.bestMove.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';
}
std::cout << '\n'; std::cout << '\n';
} }