summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/common.h b/src/common.h
index 13fcf7c..5bd31f7 100644
--- a/src/common.h
+++ b/src/common.h
@@ -1,10 +1,16 @@
+#ifndef OXEN_COMMON_H
+#define OXEN_COMMON_H
+
+#include <stdint.h>
+
#define MAX_CARDSTACK_SIZE 5
-#define MAX_CARDHAND_SIZE 10
+#define MAX_HAND_SIZE 10
typedef char card;
-typedef card cardstack[5];
-typedef card hand[10];
+typedef card cardstack[MAX_CARDSTACK_SIZE];
+typedef card hand[MAX_HAND_SIZE];
-int cardpoints(card c);
-int stackpoints(cardstack s);
+uint32_t cardpoints(const card c);
+uint32_t stackpoints(const cardstack s);
+#endif // OXEN_COMMON_H