summaryrefslogtreecommitdiff
path: root/src/engine/bitboard.h
diff options
context:
space:
mode:
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();