main_testing4/shogun_test5.scala
changeset 476 7550c816187a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_testing4/shogun_test5.scala	Sat Nov 04 18:53:37 2023 +0000
@@ -0,0 +1,13 @@
+def urbanmain() = {
+  import M4._
+
+  val b2 = Board(Set(King(2, Red, (4,2)), King(2, Wht, (7,1)),
+                     Pawn(3, Red, (6,1)), Pawn(2, Wht, (8,4)),
+                     Pawn(4, Red, (4,4)), Pawn(2, Wht, (4,1)),
+                     Pawn(4, Red, (5,3)), Pawn(3, Wht, (8,7)),
+                     Pawn(3, Red, (6,5))))
+
+  assert(protectedN(Pawn(2, Wht, (8,4)), b2) == 1)
+  assert(protectedN(Pawn(4, Red, (5,3)), b2) == 3)
+
+}