diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-26 14:22:55 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-05-26 14:22:55 +0530 |
| commit | ad32fc54b2869c0bbedcabea6274b0e3732ec893 (patch) | |
| tree | e4229b03c3f5ee4beea73db3d6614136ff3165e7 /src/main.c | |
| parent | 7e021a821b49306eaa8b0688e4b91d2db25d4878 (diff) | |
bishop & queen
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -7,9 +7,9 @@ int main() { position_t position = position_starting(); position.bitboards[WHITE_KING] = 16ULL; -position.bitboards[WHITE_QUEEN] = 8ULL; +position.bitboards[WHITE_QUEEN] = 268435456ULL; position.bitboards[WHITE_ROOK] = 16777344ULL; -position.bitboards[WHITE_BISHOP] = 36ULL; +position.bitboards[WHITE_BISHOP] = 67108896ULL; position.bitboards[WHITE_KNIGHT] = 66ULL; position.bitboards[WHITE_PAWN] = 65280ULL; position.bitboards[BLACK_KING] = 1152921504606846976ULL; @@ -19,11 +19,16 @@ position.bitboards[BLACK_BISHOP] = 2594073385365405696ULL; position.bitboards[BLACK_KNIGHT] = 4611687117939015680ULL; position.bitboards[BLACK_PAWN] = 71776119061217280ULL; - get_rook_moves(&moves, position); + get_queen_moves(&moves, position); + + bitboard_t b = 0; for (int i = 0; i < moves.length; i++) { + b |= (bitboard_t)1 << moves.moves[i].to; printf("%d %d | ", (moves.moves[i].from), (moves.moves[i].to)); } + + print_bitboard(b); return 0; } |
