diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 23:46:07 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 23:46:07 +0530 |
| commit | 22c0d29724c2b054d8b9f9ed2373103d412f02b3 (patch) | |
| tree | 83be782ad10dc0568c825de7d82c20ff16db6af5 /src/bitboard.c | |
| parent | b2f0457deaf8fd7c336e5370212df9202d6f3eeb (diff) | |
king DONE
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 8b9a83c..afc7867 100644 --- a/src/bitboard.c +++ b/src/bitboard.c @@ -40,6 +40,8 @@ void assert_valid_position(position_t position) { ); assert(position.turn == WHITE_TURN || position.turn == BLACK_TURN); assert(position.passantable_column <= 8); + assert(position.bitboards[WHITE_KING] != 0); + assert(position.bitboards[BLACK_KING] != 0); } bitboard_t whites(position_t position) { |
