From 450aeb7ca1144ca821a060aaafe19dec6892387f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 10 Jun 2021 23:47:43 +0300 Subject: refactor: use 0x88 board representation --- src/pieces.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pieces.h') 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 -- cgit v1.2.3