marking3/knight1_test1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 02 Jan 2019 22:01:20 +0000
changeset 252 f5948104eef5
parent 243 80102fba0a93
child 326 7d983ee99fcc
permissions -rw-r--r--
added stub for cws dates
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