summaryrefslogtreecommitdiff
path: root/src/pieces.h
blob: f8e50e7b6ad2ace3df11ae46ef2b8a90803aa4a1 (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
#define WHITE  0b0000
#define BLACK  0b0001

#define EMPTY  0b0000
#define VISUAL 0b0001

#define PAWN   0b0010
#define KNIGHT 0b0100
#define BISHOP 0b0110
#define ROOK   0b1000
#define QUEEN  0b1010
#define KING   0b1100


char* pieces[] = {
  ".", "#",
  "♟︎", "♙",
  "♞", "♘",
  "♝", "♗",
  "♜", "♖",
  "♛", "♕",
  "♚", "♔",
};


#define RANK_MASK 0b111000
#define FILE_MASK 0b000111

#define ORIGIN_MASK      0b111111000000
#define DESTINATION_MASK 0b000000111111