From 7e021a821b49306eaa8b0688e4b91d2db25d4878 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 26 May 2026 14:07:15 +0530 Subject: rook moves --- src/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7f7812f..b5d57eb 100644 --- a/src/main.c +++ b/src/main.c @@ -6,9 +6,9 @@ int main() { moves_t moves = moves_init(); position_t position = position_starting(); -position.bitboards[WHITE_KING] = 65536ULL; +position.bitboards[WHITE_KING] = 16ULL; position.bitboards[WHITE_QUEEN] = 8ULL; -position.bitboards[WHITE_ROOK] = 129ULL; +position.bitboards[WHITE_ROOK] = 16777344ULL; position.bitboards[WHITE_BISHOP] = 36ULL; position.bitboards[WHITE_KNIGHT] = 66ULL; position.bitboards[WHITE_PAWN] = 65280ULL; @@ -16,11 +16,10 @@ 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_KNIGHT] = 4611687117939015680ULL; position.bitboards[BLACK_PAWN] = 71776119061217280ULL; - - get_king_moves(&moves, position); + get_rook_moves(&moves, position); for (int i = 0; i < moves.length; i++) { printf("%d %d | ", (moves.moves[i].from), (moves.moves[i].to)); -- cgit v1.2.3