testing3/knight1.scala
changeset 284 9a04eb6a2291
parent 247 50a3b874008a
child 326 e5453add7df6
equal deleted inserted replaced
283:ef5f62bf5987 284:9a04eb6a2291
     1 // Part 1 about finding and counting Knight's tours
     1 // Preliminary Part 1 finding and counting Knight's tours
     2 //==================================================
     2 //========================================================
     3 
     3 
     4 //object CW8a {   // for preparing the jar
     4 object CW8a {  
     5 
     5 
     6 type Pos = (Int, Int)    // a position on a chessboard 
     6 type Pos = (Int, Int)    // a position on a chessboard 
     7 type Path = List[Pos]    // a path...a list of positions
     7 type Path = List[Pos]    // a path...a list of positions
     8 
     8 
     9 
     9 
   163 
   163 
   164 // 15 secs for 8 x 8
   164 // 15 secs for 8 x 8
   165 //time_needed(0, print_board(8, first_tour(8, List((0, 0))).get))
   165 //time_needed(0, print_board(8, first_tour(8, List((0, 0))).get))
   166 
   166 
   167 
   167 
   168 //}
   168 }
   169 
   169 
   170 
   170