summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authordozens2024-06-08 20:58:40 -0600
committerdozens2024-06-14 21:52:00 -0600
commit1250f9f057c2e21a0edab87f0a6003a25decd1b7 (patch)
treeb71dbcf18354ebc59bec48ae926654bdf3c0a59b /test
parent91b1662302c14cf84ca8b90c1f3ec20a585f67a5 (diff)
feat: add flying phase
Diffstat (limited to 'test')
-rw-r--r--test/capture-oops-all-mills.dat51
-rw-r--r--test/flying.dat43
-rw-r--r--test/moving-capture.dat3
-rw-r--r--test/test.awk2
4 files changed, 99 insertions, 0 deletions
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\""
 }