main_testing4/knight_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 24 Nov 2020 09:04:06 +0000
changeset 366 d2f895c1dba6
parent 347 0b727d1a8184
child 403 312c9eb39ad8
permissions -rw-r--r--
updated

import CW9a._

assert(is_legal(8, Nil, (3, 4)) == true)
assert(is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false)
assert(is_legal(2, Nil, (0, 0)) == true)