From b99cda9530a54e459eb49b50cf1922b38c7432ec Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 30 Aug 2022 23:04:19 +0300 Subject: feaT: add pawn promotions --- src/pieces.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pieces.h') diff --git a/src/pieces.h b/src/pieces.h index fd0abaf..fe4d307 100644 --- a/src/pieces.h +++ b/src/pieces.h @@ -15,6 +15,7 @@ char* COLORS[] = { "white", "black" }; #define QUEEN 0b1010 #define KING 0b1100 +#define PROMOTION_HAPPENED 0b100000 char* pieces[] = { ".", "*", @@ -41,3 +42,4 @@ int blackPawnAttackMoves[] = { -17, -15, 0 }; #define FILE_MASK 0b1111 #define DESTINATION_MASK 0b1111111 + -- cgit v1.2.3