tiny refactor in printing | bench 4118297
This commit is contained in:
1 parent
537139f5d0
commit
9622a28db5
1 file changed
+2
-14
+2
-14
@@ -325,20 +325,8 @@ void SearchPosition(Board &board, SearchParams params) {
|
||||
U64 elapsed = std::chrono::duration_cast<
|
||||
std::chrono::duration<U64>>(currTime - timeStart).count();
|
||||
|
||||
std::cout << "bestmove " << squareCoords[results.bestMove.MoveFrom()]
|
||||
<< squareCoords[results.bestMove.MoveTo()];
|
||||
|
||||
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 << "bestmove ";
|
||||
results.bestMove.PrintMove();
|
||||
std::cout << '\n';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user