summaryrefslogtreecommitdiff
path: root/include/ptn.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-29 22:48:53 -0500
committertslil <tslil@posteo.de>2020-12-29 22:49:17 -0500
commitefad4b375574f6cdfffbb79f193cb2bef8c901be (patch)
tree08b71fbf1810806e628bbf7f8d7b121d9b7c8443 /include/ptn.h
parent80e06d3c02d82b356cbed995ed3cddc35edb8481 (diff)
Working on the big wrapper for everything
Diffstat (limited to 'include/ptn.h')
-rw-r--r--include/ptn.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/ptn.h b/include/ptn.h
index 0baed01..fd154f9 100644
--- a/include/ptn.h
+++ b/include/ptn.h
@@ -1,13 +1,14 @@
#include <stdint.h>
#include "enums.h"
-enum PTN_PARSE_RESULT { PTN_VALID, PTN_INVALID };
+uint8_t
+likely_move(char *ptn);
-enum PTN_PARSE_RESULT
+enum E_RESULT
parse_place(const uint8_t board_size, char *ptn,
uint8_t *out_location, enum STONE_VARIANT *out_stone);
-enum PTN_PARSE_RESULT
+enum E_RESULT
parse_move(const uint8_t board_size, char *ptn,
uint8_t *out_location, enum MOVE_DIRECTION *out_direction,
uint8_t *out_steps, uint8_t out_drops[5]);