implemented quiescence search

This commit is contained in:
rektdie committed 2024-05-13 13:07:13 +02:00
1 parent b78c9cc196
commit d89956a2fb
4 files changed
+68 -42

No files matched your search

+7 -1
View File
@@ -48,8 +48,14 @@ public:
return m_move >> 12;
}
int IsCapture() {
return (GetFlags() == capture || GetFlags() == epCapture
|| GetFlags() == knightPromoCapture || GetFlags() == bishopPromoCapture
|| GetFlags() == rookPromoCapture || GetFlags() == queenPromoCapture);
}
void PrintMove() {
std::cout << squareCoords[MoveFrom()] << squareCoords[MoveTo()];
std::cout << " (" << moveTypes[GetFlags()] << ")\n";
}
};
};