From 6f7cfbfcde39a57a59db17882339fa26055b75a0 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 14 Sep 2022 05:27:30 +0300 Subject: feat: precompute king attack tables --- src/board.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/board.h') diff --git a/src/board.h b/src/board.h index c9d8153..11b0c71 100644 --- a/src/board.h +++ b/src/board.h @@ -11,6 +11,7 @@ #define KING 0b1010 typedef U64 Bitboard; +#define BIT (U64)1 typedef struct { Bitboard pieces[12]; @@ -56,6 +57,7 @@ static const char* pieces[] = { }; void precompute_knight_attack_table(); +void precompute_king_attack_table(); void print_bitboard(Bitboard bb); int pop_count(Bitboard bb); void print_board(Board board); -- cgit v1.2.3