main_testing4/knight_test1.scala
changeset 403 ffce7b61b446
parent 347 4de31fdc0d67
equal deleted inserted replaced
402:de59aa20a1dc 403:ffce7b61b446
     1 import CW9a._
     1 import M4a._
     2 
     2 
     3 assert(is_legal(8, Nil, (3, 4)) == true)
     3 assert(is_legal(8, Nil, (3, 4)) == true)
     4 assert(is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false)
     4 assert(is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false)
     5 assert(is_legal(2, Nil, (0, 0)) == true)
     5 assert(is_legal(2, Nil, (0, 0)) == true)
     6 
     6