diff options
| author | tslil <tslil@posteo.de> | 2020-12-28 20:56:46 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | fd22e4cf3198c1e63cf26dd5fdce588a1e969ac1 (patch) | |
| tree | 363215345250b1f0aa223ce97671589fa2837a0f /include/ptn.h | |
| parent | f706a6a0546400cb6a1925f25dc010ffce2afd49 (diff) | |
Started on PTN stuff
Diffstat (limited to 'include/ptn.h')
| -rw-r--r-- | include/ptn.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ptn.h b/include/ptn.h new file mode 100644 index 0000000..715a7d0 --- /dev/null +++ b/include/ptn.h @@ -0,0 +1,13 @@ +#include <stdint.h> +#include "enums.h" + +enum PTN_PARSE_RESULT { PTN_VALID, PTN_INVALID }; + +enum PTN_PARSE_RESULT +parse_place(const uint8_t board_size, char *ptn, + uint8_t *location, enum STONE_VARIANT *stone); + +enum PTN_PARSE_RESULT +parse_move(const uint8_t board_size, char *ptn, + uint8_t *location, enum MOVE_DIRECTION *direction, + uint8_t *steps, uint8_t drops[5]); |
