main_testing4/knight3.scala
changeset 403 312c9eb39ad8
parent 347 0b727d1a8184
child 430 4029552de5fc
equal deleted inserted replaced
402:72e43cb53c13 403:312c9eb39ad8
     1 // Part 3 about finding a single tour using the Warnsdorf Rule
     1 // Part 3 about finding a single tour using the Warnsdorf Rule
     2 //=============================================================
     2 //=============================================================
     3 
     3 
     4 object CW9c { 
     4 object M4c { // for preparing the jar
     5 
     5 
     6 type Pos = (Int, Int)
     6 type Pos = (Int, Int)
     7 type Path = List[Pos]
     7 type Path = List[Pos]
     8 
     8 
     9 
     9 
    58 
    58 
    59 
    59 
    60 def tour_on_mega_board(dim: Int, path: Path) =
    60 def tour_on_mega_board(dim: Int, path: Path) =
    61   time_needed(ttour_on_mega_board(dim: Int, path: Path))
    61   time_needed(ttour_on_mega_board(dim: Int, path: Path))
    62 
    62 
       
    63 
       
    64 // testcases
       
    65 //print_board(70, tour_on_mega_board(70, List((0, 0))).get)
       
    66 
    63 }
    67 }