diff options
author | eug-vs <eug-vs@keemail.me> | 2021-06-10 23:47:43 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-06-10 23:47:43 +0300 |
commit | 450aeb7ca1144ca821a060aaafe19dec6892387f (patch) | |
tree | 0b42238d0f7bcbcc504e46d0568ac165cb7efdce /src/pieces.h | |
parent | a86664a49d3e148bd8d636c177d9f65bdb2c8dbd (diff) | |
download | c-chess-450aeb7ca1144ca821a060aaafe19dec6892387f.tar.gz |
refactor: use 0x88 board representation
Diffstat (limited to 'src/pieces.h')
-rw-r--r-- | src/pieces.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pieces.h b/src/pieces.h index f8e50e7..2d5a02a 100644 --- a/src/pieces.h +++ b/src/pieces.h @@ -23,8 +23,6 @@ char* pieces[] = { }; -#define RANK_MASK 0b111000 -#define FILE_MASK 0b000111 +#define FILE_MASK 0b1111 -#define ORIGIN_MASK 0b111111000000 -#define DESTINATION_MASK 0b000000111111 +#define DESTINATION_MASK 0b1111111 |