main_marking4/knight2_test7.scala
changeset 463 0315d9983cd0
parent 424 daf561a83ba6
equal deleted inserted replaced
462:34feeb53c0ba 463:0315d9983cd0
    24 }
    24 }
    25 
    25 
    26 def correct_closed_urban(dim: Int)(p: Path) =
    26 def correct_closed_urban(dim: Int)(p: Path) =
    27   correct_urban(6)(p) &&  moves_urban(p.head).contains(p.last)
    27   correct_urban(6)(p) &&  moves_urban(p.head).contains(p.last)
    28 
    28 
       
    29 import scala.concurrent._
       
    30 import scala.concurrent.duration._
       
    31 import ExecutionContext.Implicits.global
       
    32 import scala.language.postfixOps 
       
    33 
       
    34 lazy val f = Future {
    29 
    35 
    30 val tsc_urban = first_closed_tour_heuristics(6, List((3, 3))).get
    36 val tsc_urban = first_closed_tour_heuristics(6, List((3, 3))).get
    31 assert(correct_closed_urban(6)(tsc_urban) == true)
    37 assert(correct_closed_urban(6)(tsc_urban) == true)
       
    38 }
    32 
    39 
       
    40 Await.result(f, 32 second)
       
    41 
       
    42 
       
    43 
       
    44 // try out tour_on_mega_board(66, List((0, 0)))