blob: c2a2a52e2bebeb7ba45bcfaa561b207b8e4158be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <stdio.h>
#include "bitboard.h"
#include "search.h"
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] = 274877906944ULL;
position.bitboards[WHITE_ROOK] = 33554560ULL;
position.bitboards[WHITE_BISHOP] = 36ULL;
position.bitboards[WHITE_KNIGHT] = 66ULL;
position.bitboards[WHITE_PAWN] = 18016057038217216ULL;
position.bitboards[BLACK_KING] = 1152921504606846976ULL;
position.bitboards[BLACK_QUEEN] = 576460752303423488ULL;
position.bitboards[BLACK_ROOK] = 9295429630892703744ULL;
position.bitboards[BLACK_BISHOP] = 288300744895889408ULL;
position.bitboards[BLACK_KNIGHT] = 4755801206503243776ULL;
position.bitboards[BLACK_PAWN] = 7459109431427072ULL;
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;
}
|