diff options
| author | tslil <tslil@posteo.de> | 2020-12-29 19:33:00 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | e57746530836b24b6d8d20e41239e955fa9e20d4 (patch) | |
| tree | 1118f87c57de6cc3798f1b29a5cefb982084b379 /include/ptn.h | |
| parent | 4a8e687b14b50e3a2a4a3632f6553872f4c301d5 (diff) | |
Output PTN as well
Diffstat (limited to 'include/ptn.h')
| -rw-r--r-- | include/ptn.h | 10 |
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]); |
