summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-02-25 22:36:38 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-02-25 22:36:38 +0530
commit4c051c50de1c1284c438de87881f52a6180fdf8e (patch)
treed92614b42633c780b9714d44e44983a9014fd34b /src/main.c
parentc61a59a4dd4a846499e6faf50ecdd87786f5c2df (diff)
pawns DONEEE
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c30
1 files changed, 23 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index fdff93d..c2a2a52 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,22 +6,38 @@ 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] = 9261338880ULL;
+// 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] = 43628777082716160ULL;
position.bitboards[WHITE_KING] = 16ULL;
-position.bitboards[WHITE_QUEEN] = 8ULL;
-position.bitboards[WHITE_ROOK] = 129ULL;
+position.bitboards[WHITE_QUEEN] = 274877906944ULL;
+position.bitboards[WHITE_ROOK] = 33554560ULL;
position.bitboards[WHITE_BISHOP] = 36ULL;
position.bitboards[WHITE_KNIGHT] = 66ULL;
-position.bitboards[WHITE_PAWN] = 85899406080ULL;
+position.bitboards[WHITE_PAWN] = 18016057038217216ULL;
position.bitboards[BLACK_KING] = 1152921504606846976ULL;
position.bitboards[BLACK_QUEEN] = 576460752303423488ULL;
position.bitboards[BLACK_ROOK] = 9295429630892703744ULL;
-position.bitboards[BLACK_BISHOP] = 2594073385365405696ULL;
+position.bitboards[BLACK_BISHOP] = 288300744895889408ULL;
position.bitboards[BLACK_KNIGHT] = 4755801206503243776ULL;
-position.bitboards[BLACK_PAWN] = 69524353607270400ULL;
+position.bitboards[BLACK_PAWN] = 7459109431427072ULL;
- position.passantable_column = 4;
- position.turn = WHITE_TURN;
+ position.passantable_column = 3;
+ position.turn = BLACK_TURN;
get_pawn_moves(&moves, position);
+
+ for (int i = 0; i < moves.length; i++) {
+ printf("%d %d | ", (moves.moves[i].from), (moves.moves[i].to));
+ }
return 0;
}