templates3/knight2.scala
changeset 305 e745f6e1ebf6
parent 296 12dc251fc47e
equal deleted inserted replaced
304:4a9d1153ccc5 305:e745f6e1ebf6
    27 //(7) Complete the function that searches for a single *closed* 
    27 //(7) Complete the function that searches for a single *closed* 
    28 //    tour using the ordered_moves function from (6). This
    28 //    tour using the ordered_moves function from (6). This
    29 //    function will be tested on a 6 x 6 board. 
    29 //    function will be tested on a 6 x 6 board. 
    30 
    30 
    31 
    31 
    32 //def first_closed_tour_heuristic(dim: Int, path: Path) : Option[Path] = ...
    32 //def first_closed_tour_heuristics(dim: Int, path: Path) : Option[Path] = ...
    33 
    33 
    34 
    34 
    35 //(8) Same as (7) but searches for *non-closed* tours. This 
    35 //(8) Same as (7) but searches for *non-closed* tours. This 
    36 //    version of the function will be called with dimensions of 
    36 //    version of the function will be called with dimensions of 
    37 //    up to 30 * 30.
    37 //    up to 30 * 30.
    38 
    38 
    39 //def first_tour_heuristic(dim: Int, path: Path) : Option[Path] = ...
    39 //def first_tour_heuristics(dim: Int, path: Path) : Option[Path] = ...
    40 
    40 
    41 
    41 
    42 
    42 
    43 }
    43 }