separated printings | bench 6238369

This commit is contained in:
rektdie committed 2025-10-06 17:56:46 +02:00
1 parent 6b5c1bbaa7
commit 5c6d75e9ef
5 files changed
+63 -20

No files matched your search

+19
View File
@@ -80,6 +80,25 @@ public:
}
}
std::string GetMoveString() {
std::string result = squareCoords[MoveFrom()];
result += squareCoords[MoveTo()];
int flags = GetFlags();
if (flags == knightPromotion || flags == knightPromoCapture) {
result += 'n';
} else if (flags == bishopPromotion || flags == bishopPromoCapture) {
result += 'b';
} else if (flags == rookPromotion || flags == rookPromoCapture) {
result += 'r';
} else if (flags == queenPromotion || flags == queenPromoCapture) {
result += 'q';
}
return result;
}
uint16_t ConvertToViriMoveFormat() {
uint16_t viriMove = 0;
int flags = GetFlags();