From e57746530836b24b6d8d20e41239e955fa9e20d4 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 29 Dec 2020 19:33:00 -0500 Subject: Output PTN as well --- include/ptn.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/ptn.h') 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]); -- cgit v1.3.1