From ad32fc54b2869c0bbedcabea6274b0e3732ec893 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 26 May 2026 14:22:55 +0530 Subject: bishop & queen --- src/main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b5d57eb..a929a54 100644 --- a/src/main.c +++ b/src/main.c @@ -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; } -- cgit v1.2.3