changeset 66 | 3506b681c191 |
parent 64 | d6f97b562424 |
child 86 | f8a781322499 |
--- a/progs/knight2_sol.scala Tue Nov 22 01:35:40 2016 +0000 +++ b/progs/knight2_sol.scala Wed Nov 23 13:32:01 2016 +0000 @@ -43,11 +43,13 @@ first(legal_moves(dim, path, path.head), (x: Pos) => first_tour(dim, x::path)) } +/* for (dim <- 1 to 8) { val t = first_tour(dim, List((0, 0))) println(s"${dim} x ${dim} " + (if (t == None) "" else { print_board(dim, t.get) ; "" })) } +*/ +print_board(8, first_tour(8, List((0, 0))).get) -