From c61a59a4dd4a846499e6faf50ecdd87786f5c2df Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 25 Feb 2026 20:41:16 +0530 Subject: GOOGLE EN PASSANT --- src/main.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 6c05aa2..fdff93d 100644 --- a/src/main.c +++ b/src/main.c @@ -5,7 +5,23 @@ int main() { moves_t moves = moves_init(); position_t position = position_starting(); + +position.bitboards[WHITE_KING] = 16ULL; +position.bitboards[WHITE_QUEEN] = 8ULL; +position.bitboards[WHITE_ROOK] = 129ULL; +position.bitboards[WHITE_BISHOP] = 36ULL; +position.bitboards[WHITE_KNIGHT] = 66ULL; +position.bitboards[WHITE_PAWN] = 85899406080ULL; +position.bitboards[BLACK_KING] = 1152921504606846976ULL; +position.bitboards[BLACK_QUEEN] = 576460752303423488ULL; +position.bitboards[BLACK_ROOK] = 9295429630892703744ULL; +position.bitboards[BLACK_BISHOP] = 2594073385365405696ULL; +position.bitboards[BLACK_KNIGHT] = 4755801206503243776ULL; +position.bitboards[BLACK_PAWN] = 69524353607270400ULL; + + position.passantable_column = 4; + position.turn = WHITE_TURN; + get_pawn_moves(&moves, position); - printf("Hello World\n"); return 0; } -- cgit v1.2.3