diff options
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) { |
