summaryrefslogtreecommitdiff
path: root/src/pieces.h
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-08-30 23:04:19 +0300
committereug-vs <eugene@eug-vs.xyz>2022-08-30 23:04:19 +0300
commitb99cda9530a54e459eb49b50cf1922b38c7432ec (patch)
tree76b5243bdc022a1646d69b5f2bd596fa70237779 /src/pieces.h
parent8efa8499eaae45a2bb2658142f720bb2bcd77088 (diff)
downloadc-chess-b99cda9530a54e459eb49b50cf1922b38c7432ec.tar.gz
feaT: add pawn promotions
Diffstat (limited to 'src/pieces.h')
-rw-r--r--src/pieces.h2
1 files changed, 2 insertions, 0 deletions
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
+