equal
deleted
inserted
replaced
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 |