implemented quiescence search
This commit is contained in:
1 parent
b78c9cc196
commit
d89956a2fb
4 files changed
+68
-42
No files matched your search
+7
-1
@@ -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";
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user