diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 23:46:07 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 23:46:07 +0530 |
| commit | 22c0d29724c2b054d8b9f9ed2373103d412f02b3 (patch) | |
| tree | 83be782ad10dc0568c825de7d82c20ff16db6af5 /src/main.c | |
| parent | b2f0457deaf8fd7c336e5370212df9202d6f3eeb (diff) | |
king DONE
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -6,20 +6,21 @@ 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] = 262208ULL; - position.bitboards[WHITE_PAWN] = 65280ULL; - 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.bitboards[WHITE_KING] = 65536ULL; +position.bitboards[WHITE_QUEEN] = 8ULL; +position.bitboards[WHITE_ROOK] = 129ULL; +position.bitboards[WHITE_BISHOP] = 36ULL; +position.bitboards[WHITE_KNIGHT] = 66ULL; +position.bitboards[WHITE_PAWN] = 65280ULL; +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] = 71776119061217280ULL; + - get_knight_moves(&moves, position); + get_king_moves(&moves, position); for (int i = 0; i < moves.length; i++) { printf("%d %d | ", (moves.moves[i].from), (moves.moves[i].to)); |
