main_templates4-old/knight3.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 04 Nov 2023 18:53:37 +0000
changeset 476 7550c816187a
parent 428 main_templates4/knight3.scala@cdfa6a293453
permissions -rw-r--r--
updated

// Finding a single tour on a "mega" board
//=========================================

object M4c {

// !!! Copy any function you need from file knight1.scala !!!
// !!! or knight2.scala                                   !!! 
//
// If you need any auxiliary function, feel free to 
// implement it, but do not make any changes to the
// templates below.


type Pos = (Int, Int)    // a position on a chessboard 
type Path = List[Pos]    // a path...a list of positions

// ADD YOUR CODE BELOW
//======================


//(9) 
def tour_on_mega_board(dim: Int, path: Path) : Option[Path] = ???

}