start bitboard init (see commit details)
- bitboard.c: make attacks for knight/king - square macros (BB, BBfile, BBrank) renamed sq_make, sq_file, sq_rank, moved to board.h (and become temporarily inline funcs) - different macros/defs moved to "correct place" (bitboard/board/piece): board.[ch]: everything related to board/square bitboard.[ch]: everything related to bitboards piece.[ch]: everything related to pieces
This commit is contained in:
@@ -82,11 +82,7 @@ extern const struct piece_details {
|
||||
s64 end_value; /* value endgame */
|
||||
} piece_details[PIECE_MAX];
|
||||
|
||||
extern const char pieces_str[6+6+1];
|
||||
|
||||
//#define P_SYM(p) piece_details[p].sym
|
||||
//#define P_NAME(p) piece_details[p].name
|
||||
//#define P_VAL(p) piece_details[p].opn_value
|
||||
extern const char pieces_str[6+6+1]; /* to search from fen/user input */
|
||||
|
||||
#define OPPONENT(p) !(p)
|
||||
|
||||
|
Reference in New Issue
Block a user