main_templates4/knight2.scala
changeset 400 bf47dbac07f8
parent 397 9755af1d74df
child 425 6e990ae2c6a3
equal deleted inserted replaced
399:d04b8569f124 400:bf47dbac07f8
     5 object M4b {
     5 object M4b {
     6 
     6 
     7 
     7 
     8 // !!! Copy any function you need from file knight1.scala !!!
     8 // !!! Copy any function you need from file knight1.scala !!!
     9 //
     9 //
    10 // If you need any auxiliary function, feel free to 
    10 // If you need any auxiliary functions, feel free to 
    11 // implement it, but do not make any changes to the
    11 // implement them, but do not make any changes to the
    12 // templates below.
    12 // templates below.
    13 
    13 
    14 type Pos = (Int, Int)    // a position on a chessboard 
    14 type Pos = (Int, Int)    // a position on a chessboard 
    15 type Path = List[Pos]    // a path...a list of positions
    15 type Path = List[Pos]    // a path...a list of positions
    16 
    16