blob: 05b370bf26c7679c2544062eddcf4fef005fbb39 (
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
|
#include "bitboard.h"
position starting_position() {
return (position) {
.bitboards = {
1152921504606846976ULL,
576460752303423488ULL,
9295429630892703744ULL,
4755801206503243776ULL,
2594073385365405696ULL,
71776119061217280ULL,
16ULL,
8ULL,
129ULL,
66ULL,
36ULL,
65280ULL
},
.castling =
(1 << WHITE_SHORT_CASTLE) |
(1 << WHITE_LONG_CASTLE) |
(1 << BLACK_SHORT_CASTLE) |
(1 << BLACK_LONG_CASTLE),
};
}
|