fix EP_ZOBRIST_IDX macro (oops !)
This commit is contained in:
9
Makefile
9
Makefile
@@ -11,8 +11,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
#CC := gcc
|
CC := gcc
|
||||||
CC := gcc-13
|
#CC := gcc-13
|
||||||
#CC := clang
|
#CC := clang
|
||||||
BEAR := bear
|
BEAR := bear
|
||||||
TOUCH := touch
|
TOUCH := touch
|
||||||
@@ -69,8 +69,9 @@ CPPFLAGS += -DBUG_ON # brlib bug.h
|
|||||||
# fen.c
|
# fen.c
|
||||||
#CPPFLAGS += -DDEBUG_FEN # FEN decoding
|
#CPPFLAGS += -DDEBUG_FEN # FEN decoding
|
||||||
|
|
||||||
# hash.c
|
# hash / TT
|
||||||
CPPFLAGS += -DZOBRIST_VERIFY # chk zobrist consistency
|
#CPPFLAGS += -DZOBRIST_VERIFY # double chk zobrist
|
||||||
|
#CPPFLAGS += -DPERFT_MOVE_HISTORY # perft, keep prev moves
|
||||||
|
|
||||||
# attack.c
|
# attack.c
|
||||||
#CPPFLAGS += -DDEBUG_ATTACK_ATTACKERS # sq_attackers
|
#CPPFLAGS += -DDEBUG_ATTACK_ATTACKERS # sq_attackers
|
||||||
|
@@ -93,7 +93,7 @@ typedef struct {
|
|||||||
* we use the formula:
|
* we use the formula:
|
||||||
* idx = ( ( ep & SQUARE_NONE ) >> 3 ) | sq_file(ep);
|
* idx = ( ( ep & SQUARE_NONE ) >> 3 ) | sq_file(ep);
|
||||||
*/
|
*/
|
||||||
#define EP_ZOBRIST_IDX(ep) ( ( (ep) >> 3 ) | sq_file(ep) )
|
#define EP_ZOBRIST_IDX(ep) ( ( ( ep & SQUARE_NONE ) >> 3 ) | sq_file(ep) )
|
||||||
|
|
||||||
extern hkey_t zobrist_pieces[16][64];
|
extern hkey_t zobrist_pieces[16][64];
|
||||||
extern hkey_t zobrist_castling[4 * 4 + 1];
|
extern hkey_t zobrist_castling[4 * 4 + 1];
|
||||||
|
Reference in New Issue
Block a user