From 8671756d141292d4ec9747ec8de6e9cf3324777d Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sun, 31 May 2026 13:07:46 +0530 Subject: CC in build.c & fen strings --- src/engine/bitboard.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/engine/bitboard.h') diff --git a/src/engine/bitboard.h b/src/engine/bitboard.h index 912cad0..b137101 100644 --- a/src/engine/bitboard.h +++ b/src/engine/bitboard.h @@ -22,10 +22,10 @@ enum { }; enum { - WHITE_SHORT_CASTLE, - WHITE_LONG_CASTLE, - BLACK_SHORT_CASTLE, - BLACK_LONG_CASTLE, + WHITE_SHORT_CASTLE = 1 << 0, + WHITE_LONG_CASTLE = 1 << 1, + BLACK_SHORT_CASTLE = 1 << 2, + BLACK_LONG_CASTLE = 1 << 3, }; enum { @@ -57,6 +57,8 @@ typedef struct { u8 castling; u8 turn; u8 passantable_file; + u16 halfmove_clock; + u16 fullmove_clock; } position_t; position_t position_starting(); -- cgit v1.2.3