marking3/knight1_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sun, 16 Dec 2018 21:43:14 +0000
changeset 249 65cb10f8014a
parent 243 80102fba0a93
child 326 7d983ee99fcc
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
243
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
assert(is_legal(8, Nil, (3, 4)) == true)
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false)
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(is_legal(2, Nil, (0, 0)) == true)
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
80102fba0a93 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6