diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 05:43:13 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-09-14 05:43:13 +0300 |
commit | 2dfa7cecdacacf7ef84e1ca768db6d636e225a0c (patch) | |
tree | d3573f22aabe6567c15a489aabe4d01792d76a50 /src/board.h | |
parent | 9bbba5c582ea2dcbf5f22503127765999f06264c (diff) | |
download | j1chess-2dfa7cecdacacf7ef84e1ca768db6d636e225a0c.tar.gz |
feat: compute pawn attack table
Diffstat (limited to 'src/board.h')
-rw-r--r-- | src/board.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/board.h b/src/board.h index 11b0c71..cf89794 100644 --- a/src/board.h +++ b/src/board.h @@ -56,9 +56,11 @@ 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); Board parse_FEN(char* FEN); + +void precompute_knight_attack_table(Bitboard table[64]); +void precompute_king_attack_table(Bitboard table[64]); +void precompute_pawn_attack_table(Bitboard table[64], BYTE color); |