isLegal function | bench 1812688

This commit is contained in:
rektdie committed 2026-02-19 15:06:57 +01:00
1 parent 1fb235fb3f
commit a9b51e384f
5 files changed
+109 -17

No files matched your search

+4
View File
@@ -64,6 +64,10 @@ public:
return (GetFlags() >= knightPromotion);
}
bool IsCastle() {
return (GetFlags() == kingCastle || GetFlags() == queenCastle);
}
void PrintMove() {
std::cout << squareCoords[MoveFrom()] << squareCoords[MoveTo()];