attack.c: sq_is_attacked() and is_in_check()

This commit is contained in:
2024-03-26 17:34:11 +01:00
parent 70d6c23c00
commit 7637bdad10
5 changed files with 83 additions and 21 deletions

View File

@@ -17,6 +17,9 @@
#include "chessdefs.h"
#include "bitboard.h"
bool sq_is_attacked(const pos_t *pos, const bitboard_t occ, const square_t sq, const color_t c);
bool is_in_check(const pos_t *pos, const color_t color);
bitboard_t sq_attackers(const pos_t *pos, const bitboard_t occ, const square_t sq, const color_t c);
bitboard_t sq_attackers_all(const pos_t *pos, const square_t sq);
bitboard_t sq_pinners(const pos_t *pos, const square_t sq, const color_t c);