diff options
Diffstat (limited to 'src/bitboard.c')
| -rw-r--r-- | src/bitboard.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bitboard.c b/src/bitboard.c new file mode 100644 index 0000000..05b370b --- /dev/null +++ b/src/bitboard.c @@ -0,0 +1,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), + }; +} |
