summaryrefslogtreecommitdiff
path: root/src/pieces.h
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-06-10 15:14:36 +0300
committereug-vs <eug-vs@keemail.me>2021-06-10 15:14:49 +0300
commita86664a49d3e148bd8d636c177d9f65bdb2c8dbd (patch)
tree8a6103b6bbcddab22bffabf7721035ac16e253e1 /src/pieces.h
parent3d356b409005ffeadfc8493dadfec5dc8cd4f4d4 (diff)
downloadc-chess-a86664a49d3e148bd8d636c177d9f65bdb2c8dbd.tar.gz
feat: read and apply user moves
Diffstat (limited to 'src/pieces.h')
-rw-r--r--src/pieces.h6
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