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/search/knight_moves.c | |
| parent | b2f0457deaf8fd7c336e5370212df9202d6f3eeb (diff) | |
king DONE
Diffstat (limited to 'src/search/knight_moves.c')
| -rw-r--r-- | src/search/knight_moves.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search/knight_moves.c b/src/search/knight_moves.c index 55f8eec..34cf66a 100644 --- a/src/search/knight_moves.c +++ b/src/search/knight_moves.c @@ -75,6 +75,8 @@ bitboard_t knight_moves[64] = { }; void get_knight_moves(moves_t* moves, position_t position) { + assert_valid_position(position); + bitboard_t friendly_knights; bitboard_t friendly_pieces; if (position.turn == WHITE_TURN) { |
