aboutsummaryrefslogtreecommitdiff
path: root/include/ptn.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-28 20:56:46 -0500
committertslil <tslil@posteo.de>2020-12-28 20:56:46 -0500
commite4c90159344a5717fab873b9a5adb92cc801df23 (patch)
tree363215345250b1f0aa223ce97671589fa2837a0f /include/ptn.h
parent9739a8cde632d3dba583c5585b3bf2dc1072aedd (diff)
Started on PTN stuff
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]);