summaryrefslogtreecommitdiff
path: root/include/types.h
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2015-03-27 11:19:16 -0300
committerRaúl Benencia <rul@kalgan.cc>2015-03-27 11:19:16 -0300
commite7497d2dde46b8fae5493c127f4dc33307a65da5 (patch)
tree4f60b18a3cf917b201f627bc448debafcf04a38b /include/types.h
initial commit
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
new file mode 100644
index 0000000..7618916
--- /dev/null
+++ b/include/types.h
@@ -0,0 +1,21 @@
+#ifndef _TYPES
+#define _TYPES
+
+#define SIZE 8
+
+typedef enum {WHITE, BLACK} Color;
+typedef enum {PAWN, ROCK, KNIGHT, BISHOP, QUEEN, KING} PieceType;
+
+typedef struct {
+ Color color;
+ PieceType type;
+} Piece;
+
+typedef struct {
+ Color color;
+ Piece* piece;
+} Square;
+
+typedef Square** Board;
+
+#endif
nihil fit ex nihilo