diff options
Diffstat (limited to 'src/pieces.h')
-rw-r--r-- | src/pieces.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pieces.h b/src/pieces.h index 10d4eec..f8e50e7 100644 --- a/src/pieces.h +++ b/src/pieces.h @@ -22,3 +22,9 @@ char* pieces[] = { "♚", "♔", }; + +#define RANK_MASK 0b111000 +#define FILE_MASK 0b000111 + +#define ORIGIN_MASK 0b111111000000 +#define DESTINATION_MASK 0b000000111111 |