add bb_pawn_attacks[][], bb_shift()

This commit is contained in:
2024-04-09 08:08:13 +02:00
parent 027aa2c132
commit f2ce20a504
7 changed files with 48 additions and 30 deletions

View File

@@ -45,6 +45,7 @@
* @return: Relative rank.
*/
#define sq_rel_rank(rank, c) ((rank_t)((7 * (c)) ^ rank))
#define sq_rel_file(file, c) ((file_t)((7 * (c)) ^ file))
/* castle_t bits structure
*/