aboutsummaryrefslogtreecommitdiff
path: root/include/ptn.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-29 19:33:00 -0500
committertslil <tslil@posteo.de>2020-12-29 19:33:00 -0500
commit80e06d3c02d82b356cbed995ed3cddc35edb8481 (patch)
tree1118f87c57de6cc3798f1b29a5cefb982084b379 /include/ptn.h
parent2cd6206fdf56e9c1cc4da0fb66c7e42efd14e18d (diff)
Output PTN as well
Diffstat (limited to 'include/ptn.h')
-rw-r--r--include/ptn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ptn.h b/include/ptn.h
index e780a70..0baed01 100644
--- a/include/ptn.h
+++ b/include/ptn.h
@@ -11,3 +11,13 @@ enum PTN_PARSE_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]);
+
+void
+generate_place(const uint8_t board_size, const uint8_t in_location,
+ const enum STONE_VARIANT in_stone, char out_ptn[4]);
+
+void
+generate_move(const uint8_t board_size, const uint8_t in_location,
+ const enum MOVE_DIRECTION in_direction,
+ const uint8_t in_steps, const uint8_t in_drops[5],
+ char out_ptn[10]);