summaryrefslogtreecommitdiff
path: root/src/engine/bitboard.h
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-05-31 13:07:46 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-05-31 13:07:46 +0530
commit8671756d141292d4ec9747ec8de6e9cf3324777d (patch)
treef14edf785f82cb6c6f3dc61c5ad1eb2689faef1f /src/engine/bitboard.h
parent198bf7c46552059581fda144ec08a9114258123e (diff)
CC in build.c & fen strings
Diffstat (limited to 'src/engine/bitboard.h')
-rw-r--r--src/engine/bitboard.h10
1 files changed, 6 insertions, 4 deletions
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();