prevent fp when move gives direct check | bench 1847720

This commit is contained in:
rektdie committed 2026-03-20 13:48:58 +01:00
1 parent 83c9a2c51c
commit 9885596770
3 files changed
+47 -2

No files matched your search

+6 -1
View File
@@ -49,6 +49,8 @@ public:
U64 nonPawnKey = 0ULL;
U64 majorKey = 0ULL;
std::array<Bitboard, 4> checkZones;
void Reset();
void SetByFen(std::string_view fen);
std::string GetFen();
@@ -82,6 +84,9 @@ public:
Bitboard CalcCheckers();
Bitboard CalcPinned(bool color);
void CalcCheckZones();
bool GivesDirectCheck(Move &move);
bool IsLegal(Move &move);
bool IsPseudoLegal(Move &move);
};
};