progs/knight2_sol.scala
changeset 64 d6f97b562424
parent 50 9891c9fac37e
child 66 3506b681c191
equal deleted inserted replaced
63:d325bce7b692 64:d6f97b562424
    46 for (dim <- 1 to 8) {
    46 for (dim <- 1 to 8) {
    47   val t = first_tour(dim, List((0, 0)))
    47   val t = first_tour(dim, List((0, 0)))
    48   println(s"${dim} x ${dim} " + (if (t == None) "" else { print_board(dim, t.get) ; "" }))
    48   println(s"${dim} x ${dim} " + (if (t == None) "" else { print_board(dim, t.get) ; "" }))
    49 }
    49 }
    50  
    50  
       
    51 
       
    52 
       
    53