main_testing4/knight_test6.scala
changeset 403 ffce7b61b446
parent 347 4de31fdc0d67
equal deleted inserted replaced
402:de59aa20a1dc 403:ffce7b61b446
     1 import CW9b._
     1 import M4b._
     2 
     2 
     3 assert(ordered_moves(8, List((3,4), (3,2)), (1, 3)) == List((0,1), (0,5), (2,1), (2,5)))
     3 assert(ordered_moves(8, List((3,4), (3,2)), (1, 3)) == List((0,1), (0,5), (2,1), (2,5)))
     4 assert(ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2)))
     4 assert(ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2)))
     5 assert(ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1)))
     5 assert(ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1)))
     6 
     6