marking3/knight1_test1.scala
changeset 326 7d983ee99fcc
parent 243 80102fba0a93
equal deleted inserted replaced
325:26058bf089ae 326:7d983ee99fcc
       
     1 import CW8a._
     1 
     2 
     2 assert(is_legal(8, Nil, (3, 4)) == true)
     3 assert(is_legal(8, Nil, (3, 4)) == true)
     3 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)
     4 assert(is_legal(2, Nil, (0, 0)) == true)
     5 assert(is_legal(2, Nil, (0, 0)) == true)
     5 
     6 
     6 
     7 
       
     8 
       
     9