From c61a59a4dd4a846499e6faf50ecdd87786f5c2df Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 25 Feb 2026 20:41:16 +0530 Subject: GOOGLE EN PASSANT --- src/bitboard.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bitboard.c') diff --git a/src/bitboard.c b/src/bitboard.c index ce994c5..8b9a83c 100644 --- a/src/bitboard.c +++ b/src/bitboard.c @@ -25,6 +25,7 @@ position_t position_starting() { (1 << BLACK_SHORT_CASTLE) | (1 << BLACK_LONG_CASTLE), .turn = WHITE_TURN, + .passantable_column = 0, }; } @@ -38,6 +39,7 @@ void assert_valid_position(position_t position) { ) ); assert(position.turn == WHITE_TURN || position.turn == BLACK_TURN); + assert(position.passantable_column <= 8); } bitboard_t whites(position_t position) { -- cgit v1.2.3