diff options
Diffstat (limited to 'src/board.h')
-rw-r--r-- | src/board.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/board.h b/src/board.h new file mode 100644 index 0000000..6cde670 --- /dev/null +++ b/src/board.h @@ -0,0 +1,29 @@ +#include "types.h" + +#define WHITE 0b0000 +#define BLACK 0b0001 + +#define PAWN 0b0000 +#define KNIGHT 0b0010 +#define BISHOP 0b0100 +#define ROOK 0b0110 +#define QUEEN 0b1000 +#define KING 0b1010 + +typedef QWORD Bitboard; + +typedef struct { + Bitboard pieces[12]; + BYTE side; + BYTE castling_rights; + BYTE en_passant_square; +} Board; + +const char* pieces[] = { + "♟︎", "♙", + "♞", "♘", + "♝", "♗", + "♜", "♖", + "♛", "♕", + "♚", "♔", +}; |