summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 8 insertions, 3 deletions
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;
}