isLegal function | bench 1812688
This commit is contained in:
1 parent
1fb235fb3f
commit
a9b51e384f
5 files changed
+109
-17
No files matched your search
@@ -64,6 +64,10 @@ public:
|
||||
return (GetFlags() >= knightPromotion);
|
||||
}
|
||||
|
||||
bool IsCastle() {
|
||||
return (GetFlags() == kingCastle || GetFlags() == queenCastle);
|
||||
}
|
||||
|
||||
void PrintMove() {
|
||||
std::cout << squareCoords[MoveFrom()] << squareCoords[MoveTo()];
|
||||
|
||||
|
||||
Reference in new issue
Block a user