diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 20:41:16 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 20:41:16 +0530 |
| commit | c61a59a4dd4a846499e6faf50ecdd87786f5c2df (patch) | |
| tree | a712292af9a482adeb9f9a02c0441b98869a227f /src/bitboard.c | |
| parent | 06f02873bf6e819ae343effefd3354cd011e7f07 (diff) | |
GOOGLE EN PASSANT
Diffstat (limited to 'src/bitboard.c')
| -rw-r--r-- | src/bitboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |
