summaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2020-12-29 19:33:00 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commite57746530836b24b6d8d20e41239e955fa9e20d4 (patch)
tree1118f87c57de6cc3798f1b29a5cefb982084b379 /src/ctaklm.c
parent4a8e687b14b50e3a2a4a3632f6553872f4c301d5 (diff)
Output PTN as well
Diffstat (limited to 'src/ctaklm.c')
-rw-r--r--src/ctaklm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c
index f6ccfe8..d7fd7c1 100644
--- a/src/ctaklm.c
+++ b/src/ctaklm.c
@@ -20,9 +20,17 @@ int main(int argc, char **argv) {
enum MOVE_DIRECTION direction;
uint8_t steps;
uint8_t drops[5];
- pr = parse_move(5, "c2+", &location, &direction, &steps, drops);
+ pr = parse_move(5, "3c2+12", &location, &direction, &steps, drops);
printf("Move <%d>: from (%d,%d) step %d sequence [%d,%d,%d,%d,%d]\n",
pr,location%5,location/5,
steps,drops[0],drops[1],drops[2],drops[3],drops[4]);
+
+ char buf[10];
+ generate_move(5, 2+5*1, M_UP, 1, drops, buf);
+ printf("Generated move: %s\n",buf);
+
+ generate_place(5,1+5*2, STONE_CAPSTONE, buf);
+ printf("Generated place: %s\n",buf);
+
}