aboutsummaryrefslogtreecommitdiff
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>2026-08-28 19:37:41 +0100
commit0a3b2d825077b5e6c5f1cf4a0dcb13fdfffc0be6 (patch)
tree08b71fbf1810806e628bbf7f8d7b121d9b7c8443 /include/ptn.h
parente57746530836b24b6d8d20e41239e955fa9e20d4 (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]);