From 1250f9f057c2e21a0edab87f0a6003a25decd1b7 Mon Sep 17 00:00:00 2001 From: dozens Date: Sat, 8 Jun 2024 20:58:40 -0600 Subject: feat: add flying phase --- test/capture-oops-all-mills.dat | 51 +++++++++++++++++++++++++++++++++++++++++ test/flying.dat | 43 ++++++++++++++++++++++++++++++++++ test/moving-capture.dat | 3 +++ test/test.awk | 2 ++ 4 files changed, 99 insertions(+) create mode 100644 test/capture-oops-all-mills.dat create mode 100644 test/flying.dat (limited to 'test') diff --git a/test/capture-oops-all-mills.dat b/test/capture-oops-all-mills.dat new file mode 100644 index 0000000..96fec37 --- /dev/null +++ b/test/capture-oops-all-mills.dat @@ -0,0 +1,51 @@ +# PLACING PHASE (18 moves) +A1 +A4 +A7 +b2 +b4 +b6 +c3 +c4 +c5 +d1 +d2 +d3 +d5 +d6 +d7 +e3 +e4 +e5 +# MOVING PHASE (6 captures) +e4f4 +e3e4 +f4g4 +d3e3 +b4 +g4g1 +c4b4 +d2 +d7g7 +e3d3 +c5c4 +b2d2 +a1 +c4c5 +d2b2 +d5 +g7g4 +b2d2 +a7 +c3c4 +d2b2 +c4 +# FLYING PHASE! +c5g7 +d3 +e4f4 +g7f6 +b2d2 +f6g7 +d1 +d2b2 diff --git a/test/flying.dat b/test/flying.dat new file mode 100644 index 0000000..a76cbf8 --- /dev/null +++ b/test/flying.dat @@ -0,0 +1,43 @@ +# PLACING PHASE (18 moves) +A1 +A4 +A7 +b2 +b4 +b6 +c3 +c4 +c5 +d1 +d2 +d3 +d5 +d6 +d7 +e3 +e4 +e5 +# MOVING PHASE (6 captures) +e4f4 +e3e4 +f4g4 +d3e3 +b4 +g4g1 +c4b4 +d2 +d7g7 +e3d3 +c5c4 +b2d2 +a1 +c4c5 +d2b2 +d5 +g7g4 +b2d2 +a7 +c3c4 +d2b2 +c4 +# FLYING PHASE! diff --git a/test/moving-capture.dat b/test/moving-capture.dat index d19ede6..a032eaf 100644 --- a/test/moving-capture.dat +++ b/test/moving-capture.dat @@ -1,3 +1,4 @@ +# placing time A1 A4 A7 @@ -16,7 +17,9 @@ d7 e3 e4 e5 +# moving time e4f4 e3e4 f4g4 +# player 2 to capture: d3e3 diff --git a/test/test.awk b/test/test.awk index ef6df20..2e3e301 100644 --- a/test/test.awk +++ b/test/test.awk @@ -3,6 +3,8 @@ BEGIN { print "spawn fennel main.fnl" } +/^#/ { next } + { print "expect -re \"Player .'s turn:\"" print "send -- \"" $0 "\\r\"" } -- cgit 1.4.1-2-gfad0