summaryrefslogtreecommitdiff
path: root/src/ctaklm.c
diff options
context:
space:
mode:
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);
+
}