aboutsummaryrefslogtreecommitdiff
path: root/include/ptn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ptn.h')
-rw-r--r--include/ptn.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ptn.h b/include/ptn.h
new file mode 100644
index 0000000..715a7d0
--- /dev/null
+++ b/include/ptn.h
@@ -0,0 +1,13 @@
+#include <stdint.h>
+#include "enums.h"
+
+enum PTN_PARSE_RESULT { PTN_VALID, PTN_INVALID };
+
+enum PTN_PARSE_RESULT
+parse_place(const uint8_t board_size, char *ptn,
+ uint8_t *location, enum STONE_VARIANT *stone);
+
+enum PTN_PARSE_RESULT
+parse_move(const uint8_t board_size, char *ptn,
+ uint8_t *location, enum MOVE_DIRECTION *direction,
+ uint8_t *steps, uint8_t drops[5]);