separated printings | bench 6238369
This commit is contained in:
1 parent
6b5c1bbaa7
commit
5c6d75e9ef
5 files changed
+63
-20
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user