cws/cw02.tex
changeset 150 9a2f2a1de42b
parent 149 3a6f51bc6121
child 152 114a89518aea
equal deleted inserted replaced
149:3a6f51bc6121 150:9a2f2a1de42b
   299   As there might not be such a tour at all, the first-tour function
   299   As there might not be such a tour at all, the first-tour function
   300   needs to return an \texttt{Option[Path]}.\\\mbox{}\hfill[2 Marks]
   300   needs to return an \texttt{Option[Path]}.\\\mbox{}\hfill[2 Marks]
   301 \end{itemize}
   301 \end{itemize}
   302 
   302 
   303 \noindent
   303 \noindent
   304 \textbf{Testing} The first tour function will be called with board
   304 \textbf{Testing:} The first tour function will be called with board
   305 sizes of up to $8 \times 8$.
   305 sizes of up to $8 \times 8$.
   306 \bigskip
   306 \bigskip
   307 
   307 
   308 \noindent
   308 \noindent
   309 \textbf{Hints:} a useful list function: \texttt{.filter(..)} filters a
   309 \textbf{Hints:} a useful list function: \texttt{.filter(..)} filters a